- First, we need to see what user Apache is running under. Type the following into a New file in any text editor. Save As whoami.php in the /var/www directory (or wherever you set Apache to serve files from):
<?php echo(exec("whoami")); ?>
- Open this file in a browser (for instance, localhost/whoami.php). It should reveal who the user is
- This tells you that the web server is running under the user webuser.
You can now give that user recursive ownership (all subfolders) of your WordPress installation using the command:chown
-hR webuser:webuser /var/mydomain.com/public_html/wordpress/
Wednesday, October 2, 2013
How to Stop WordPress Asking for FTP details to Upgrade Plugins
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment