Learn to Code via Tutorials on Repl.it!

← Back to all posts
How to create a WordPress website at replit.com
h
Polo1245Ofi (3)

To create a wordpress website at replit.com is easy, first create a "Bash" project, then in the main.sh file you paste the following: wget https://wordpress.yodacode.repl.co/download.sh; chmod + x download.sh; ./download.sh
PS: Thanks to YodaCode for making the download code

Once it is downloaded and you start you have to go to the wordpress / wp-config.php file and go to row 49 of that file, and change put your unique phrase here for something that is difficult to know.

Once you do that, when you log in, you will get that it does not load the css

and you will say wtf, to change that you have to go to wordpress / wp-config.php and go to the end of everything and put this:

if (isset ($ _ SERVER ['HTTP_X_FORWARDED_PROTO']) && $ _SERVER > ['HTTP_X_FORWARDED_PROTO'] === 'https') {
$ _SERVER ['HTTPS'] = 'on';
}

define ("FS_METHOD", "direct");

You install it and that's it, and now another problem is that ...

I get an error when entering wp-admin D:: to solve it go to the wordpress / wp-includes / capabilities.php file and go to line 691, and change

function current_user_can ($ capability) {
$ current_user = wp_get_current_user ();

if (empty ($ current_user))
return false;

if (is_admin ())
return true;
$ args = array_slice (func_get_args (), 1);
$ args = array_merge (array ($ capability), $ args);

return call_user_func_array (array ($ current_user, 'has_cap'), $ args);
}

For:

function current_user_can ($ capability) {
$ current_user = wp_get_current_user ();

if (empty ($ current_user))
return false;

if (is_admin ())
return true;
$ args = array_slice (func_get_args (), 1);
$ args = array_merge (array ($ capability), $ args);

return call_user_func_array (array ($ current_user, 'has_cap'), $ args);
}

And voila, you can enter the WordPress website! UpVote if it worked for you!

If you have problems, leave it in the comments of the post!