Drupal Install in Plesk 10

Events happening in the community are now at Drupal community events on www.drupal.org.
mikeejt's picture

Anybody with experience installing Drupal w/ Plesk 10?

I just moved to a dedicated virtual, and Plesk is the default Control Panel. Logged in as admin (of Plesk), I created a subscription for my main site example.com, and had to create another user (userx) for it. However, I can't login to control panel w/ userx, but yet have ftp access, and I've set ssh access as well.

Here is where I get confused: once the subscription is made, the default permissions of the httpdocs and its subfolders belong to userx, I can ftp my files to httpdocs using userx, but when I try to install drupal, it says that settings.php and /sites/default/files folder can't be created.

Looking here and here, it seems I need to make sure that the user the webserver runs as has access to those files. I figured that it would be userx, since that is the user I created when creating the subscription for this site.

Question - who is the user the webserver runs as? And if possible, please describe proper installation w/ plesk and centos.

Please pardon my ignorance as I'm not a sysadmin...

Comments

Permissions

oadaeh's picture

This is all you should need to do:

First, temporarily give group and other write access to the settings.php file with this command: chmod ugo+w settings.php (I added the user for good measure.)

Next, manually create the files directory and give the group write access with this command: chmod -R ug+w settings.php (The "-R" says to do it recursively.)

After your installation is done, remove all write access to settings.php with a similar command to the first one: chmod ugo-w settings.php

You can check to make sure you have everything correct on the Reports -> Status report page.

Thanks so much! LOL my *nix

mikeejt's picture

Thanks so much! LOL my *nix skills aren't as good as yours and you've been a great help at both the meetups and here.

I knew I had to change permissions but didn't know to which group or what permissions. Looking at the different groups and permissions, if anybody's running Plesk, make sure to change the group for the files directory to psaserv (Plesk Server). This is the group that will need write access to the files directory, and during install the settings.php file.

chgrp psaserv sites/default/files

Most likely, when you upload the file through the ftp user, the ftp user belongs to the group psacln (Plesk User/Client).

Oh one more thing...just a slight correction to oadeh's above post on changing the permissions on the files directory (second *nix command)

chmod -R ug+w sites/default/files

just change from settings.php to the files directory.

***IMPORTANT:
As oadeh stated above, make sure to remove write access to settings.php when done, especially on a live site.

Twitter

-Michael

Oops!

oadaeh's picture

Darn my copying and pasting w/o correcting. :^)

I thought about mentioning changing the group, but I didn't know what to change it to, and I kind of ASSuMEd it would already be set correctly. I guess I was wrong about that. :^)

You're welcome. Glad you got it working.

using Media Temple?

Techivist's picture

Sounds like you might be using Media Temple's (dv) offering. That true, Michael?

Miguel Hernandez - www.migshouse.com
Founder & CEO - The OpenMindz Group
Writer- Linux Journal & TechZulu

Yep. Just switched over from

mikeejt's picture

Yep. Just switched over from using shared hosting for my other sites. Really have nothing but praise so far for (dv) hosting. Difference of performance between (gs) and (dv) really is night and day.

First tried MediaTemple's shared hosting (gs) and performance sucks. But, I was debugging w/ their tech support, and found that although phpinfo() displayed 99MB of max memory, it actually was limited to 41MB. They found that their configuration may be incorrect (for shared hosting) and are further looking into it. We are trying to launch soon so we made the jump to (dv) hosting since they have a 30 day money back guarantee. No regrets whatsoever, esp since it's shown the best value so far with what we're looking for (semi-managed, responsive and helpful customer support).

I really wanted to give Linode a try, but bc of time constraints, and we don't have a sys admin on staff, we decided w/ MediaTemple.

Twitter

-Michael

Las Vegas, Nevada

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week