racerstodeath
Forum Replies Created
-
For those who are looking for a solution:
You’ll need to make sure that your PHP is running as the correct user. I two WordPress installation on my server and 1 was giving me this error. I am on GCP Debian server w/ Virtualmin.ERROR: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
ISSUE: PHP is being run as FCGId as virtual server owner and PHP is does not execute correctly
FIX: Virtualmin – Server Configuration – Website Options – PHP Script Execution Mode – Apache mod_php
Forum: Fixing WordPress
In reply to: Update Plugin Directly in Admin – No FTPSo an update for other that are experiencing similar issues. We were able to narrow it down to PHP 7 using separate instances for each user instead of just 1 for all users. Looking at our back up VM, PHP 5 ran an instance under an Admin user. In PHP 7, there were multiple instances under the user name for each virtual server instance. For each virtual servers running there was 1 PHP instance in the username and 1 for the group. Then there would be 3 instances for www-data.
It seems the problem is that the file/folder ownership is no longer under the virtual server user’s name but under www-data and with permissions set at 755 per WordPress’s documentation, it wasn’t allowed to write into directory.
Our solution was to set the permissions for folders to 775 so that www-data can write into directories. Not sure if this is the best way but it works for now.
Lastly, I did end up using define( ‘FS_METHOD’, ‘direct’ ); in the wp-config file. Not sure if it works without it though.
Please let me know if there is a better way to fix this problem. I always consider giving more permissions to fix a problem is the lazy way out so further help is appreciated.
The directory to the config files are located at /etc/php/7.0/fpm/pool.d
Thanks.
Forum: Fixing WordPress
In reply to: Update Plugin Directly in Admin – No FTPI tried the FS Method but it’s giving me an error: “An error occurred while updating UpdraftPlus – Backup/Restore: Could not create directory.”
So I am using Webmin and I went to server – apache webserver – user and groups – Run CGI programs as Unix user #XXXX and group #XXXX.
I don’t know what those 4 digit number represented so I just changed it to the username for the owner of the directories. Restarted apache but still not working.
I’ll investigate it more today. Thanks for offering the suggestions!
Forum: Fixing WordPress
In reply to: Update Plugin Directly in Admin – No FTPThe folder is set correctly for the user with 0755 permissions – don’t think these were changed in the course of the upgrade. How can change how I fix the PHP side? Thanks for helping out.