Installing WordPress on Repl.it
WordPress need some php libraries unavalible in repl enviroment. This article show you how to install this libraries.
Creating working directory
Downloading all required files
WordPress need MySQL module to work. If you want use SQLite in your project, download SQLite module for PHP:
Unpacking WordPress and PHP libraries
Moving files to good directories
If you are decided to use SQLite download, unpack and install extension
Creating php.ini file with extensions
Creating Replit startup file
Removing all unused files
You now have installed all required modules and WordPress.
Now you can start work.
Good Luck )))
I made it even easier to do it:
It does all the steps of the tutorial in 1 command, which is easy to use.
@yamilyrealty You can not update PHP on replit. You may want to buy VPS or hosting who support the newest PHP.
If you really want to have the latest version of PHP on replit you need to download PHP8 binaries and his dependencies (For example from Debian Sid repository). And then replace running script for local binaries.
I have never done this before on replit, and I can not promise that it will work.
I followed this and have my WordPress working. But I am having a different issue.
My WordPress is losing all updates I make (posts, theme customization, etc.) there is only one page I first added which is still available. Other pages, posts are being lost.
I am not sure what's the matter.
Please someone help.
Thanks a million @ThePolishPPK you did a great job.
I got it to work. Up to a point where
asked for Database Connection Details
I copied wordpress/wp-config-sample.php into wordpress/wp-config.php and the DB issue is gone
install.php worked fine
One issue outstanding.
Moving it from http to https mode
@YellowBanana When you install WordPress by GitHub instructions it installs only application whose require PDO driver. On Replit you cannot install a PDO driver, but you don't have access to a fully emulated server. Tutorial above include downloading PDO drivers and including them while running PHP server.
@ethanpil The install process works but after the login i`m not able to visit "wp-admin": Sorry, you are not allowed to access this page.
After enabling the debug output, i got the notice like here, but after fixig there is still no access to the admin area: https://translate.google.com/translate?hl=de&tl=de&sl=auto&u=https%3A%2F%2Fqooga.jb-jk.net%2Fwp%2Fcorrespondence-of-sqlite-integrations-noties%2F
@KoljaL yes, I see the issue. Its related to the check
$current_user = wp_get_current_user(); in
wp-includes/capabilities.php. This very temporary fix allows you to login https://stackoverflow.com/a/41881463/933782
But there are definately underlying issues still. Looks like the sqlite3 plugin may not be as compatible as it used to be. I will keep at it in the meantime. Please share if you have any insights!