Fix Wordpress Permissions on MediaTemple DV Server…
Heres a simple way to fix the permissions across all sites on a MediaTemple DV Server…
First, To stop wordpress from asking you for FTP information on plugins, add the following code at the beginning of your wp-config.php file.
define('FTP_BASE', '/httpdocs/');
define('FTP_CONTENT_DIR', '/httpdocs/wp-content/');
define('FTP_PLUGIN_DIR ', '/httpdocs/wp-content/plugins/');
define('FTP_USER', '<FTP_Username>');
define('FTP_PASS', '<FTP_Password>');
define('FTP_HOST', 'ftp.example.com:21');
If you dont want to add this, you can install Fix Plugin Update. However, using this method will set the permissions of apache:apache on any plugin you install or upgrade, so you wont be able to edit your plugins from FTP without changing the owner/group.
Next, to solve the permissions issues on .htaccess and uploads, were going to add the ‘apache’ user to the ‘psacln’ group by editing ‘/etc/group’ with your favorite text editor. Most advanced users use vi but I used nano.
nano /etc/group
Change:
psacln:x:2524:
to:
psacln:x:2524:apache
For my server I also added psaftp,psaadm:
psacln:x:2524:apache,psaftp,psaadm
Now, for any file/folder you want writable by wordpress, just make it writable by the group.
cd httpdocs chmod g+w .htaccess chmod -R g+w wp-content/uploads
Thats It!
Twitted by bobbykircher
[...] This post was Twitted by bobbykircher – Real-url.org [...]
nichemedia
could you give a little bit more information for a new media temple DV user?? How do you edit the etc/group? Was this shell commands? Thanks !
admin
if you ssh into your server as the administrator for your domain, you should just be able to type ‘nano /etc/group’
then find the line that starts with psacln and add :apache to the end of it and press ctrl-o ctrl-x to save it and exit.
If you have any other problems let me know.
nichemedia
Thanks a lot for the reply… still ran into some trouble. Could we hire you to set this up for us? Shoot me an email nichemedia611@gmail.com thanks again.
Timoluege
Hi there,
I used both the SSH client within Plesk an my own SSH client to try to make this work. However, when I enter ‘nano /etc/group/ I get the error message “nano: command not found”. Do I have to install it first?
Thanks,
Timo
admin
First, you’ll need yum & the developers tools installed. Follow these directions:
http://kb.mediatemple.net/questions/807/(dv)+3.5+Tech+Specs+-+Developer’s+Tools+package+listing.
http://techglobber.wordpress.com/2008/02/14/installing-yum-subversion-on-media-temple-dv-feb-2008/
Then to install nano run ‘yum install nano’. If that doesnt work let me know and Ill help you out.
Enabling Technology » FWD:Fix the Wordpress Permission Issues on DV Server of MediaTemple
[...] http://hereshowi.com/wordpress/fix-wordpress-permissions-on-mediatemple-dv-server [...]