Submitted by BerkWood on Fri, 04/17/2015 - 15:49
I have a VServer that can't run PHP scripts as the owner, however a sub domain has no problem. I have checked permissions, directory structure, etc. It's a Wordpress site and the sub domain was a test to replace the main domain. Wordpress lost the ability to update when we moved the site to the main domain. Is there a way to check the VMin main domain config file against the sub domain?
Status:
Active
Comments
Submitted by andreychek on Fri, 04/17/2015 - 15:53 Comment #1
Howdy -- if you go into Server Configuration -> Website Options for that particular domain, what is the PHP Execution Mode set to?
Submitted by BerkWood on Fri, 04/17/2015 - 16:09 Comment #2
ATM, it's set for Run as Owner = No. The sub domain is set for FCGID and runs fine. When I set the main domain for FCGID, I get "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." which is obviously not the case since all other domains and the sub domain work fine. My initial thought was the config file is looking in the wrong place, but I think maybe I'm not looking at the correct file. I'm in /etc/webmin/virtual-servers
Submitted by andreychek on Sat, 04/18/2015 - 13:43 Comment #3
Is there any chance you could set that to run under FCGID, then add a file with a name like "test.php" containing the following contents:
<div class="codeblock"><pre><code><span style="color: #000000"><span style="color: #0000BB"><?php<br /> phpinfo</span><span style="color: #007700">(); <br /></span><span style="color: #0000BB">?></span></span></code></pre></div>
And then, could you point us to that URL?
That will help us understand what's going on there.
If this is a live site, I understand if you can't do that -- perhaps you could do that yourself, and then just capture the output?
Submitted by BerkWood on Sat, 04/18/2015 - 17:47 Comment #4
Trying to upload the PDF's of phpinfo but I'm getting a validation error... I can drop them into the root of the server or email them to you
Submitted by andreychek on Sat, 04/18/2015 - 18:16 Comment #5
You could put them into the public_html folder of one of your domains, if you like, and let us know a URL we can use to access it.
Alternatively, you could email it to eric@virtualmin.com. Thanks!
Submitted by andreychek on Sat, 04/25/2015 - 20:12 Comment #6
Okay, it's certainly using mod_php at the moment, and it appears to be using the standard system-wide PHP config file for mod_php.
As far as how to resolve this issue --
There's a php.ini file located in $HOME/etc/php5/php.ini.
I'm curious what happens if you backup that file, and then copy /etc/php.ini over to $HOME/etc/php5/php.ini.
If there's a problem with the extension path in the php.ini file for that user, copying in the system-wide php.ini file should correct that.
Submitted by BerkWood on Mon, 04/27/2015 - 22:55 Comment #7
Thank you!!! I believe that did it. The site is now running as the owner. I am waiting for the customer to verify the functions