PHP - Run scripts as owner

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?



Howdy -- if you go into Server Configuration -> Website Options for that particular domain, what is the PHP Execution Mode set to?

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

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">&lt;?php<br />&nbsp;phpinfo</span><span style="color: #007700">(); <br /></span><span style="color: #0000BB">?&gt;</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?

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

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 Thanks!

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.

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