• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Apache User

B

buchibabu_ghen

Guest
Hi,

We are using plesk 7.5.4. Under what user the httpd daemon should run plesk? my server is running as apache user.

Regards,
Buchibabu
 
Under most OS's it should be running as user 'apache' (at least the Redhat flavor distros)
 
thanks.

But when we create new site from the control panel it is not giving proper permissions to the httpdosc folder it seems. We are getting forbidden errors while opening the site from the browser.

what is the ownership and permissions of the files and directories and its subdirectories situated under vhosts directory.

Thanks in Advance,
Buchibabu
 
The UID should be the same as the ftpuser you defined for the domain. The GID should be 'psacln' or 'psaserv' for some, root : root for others. Here is a 'ls -al' of a test domain I created:
Code:
# ls -al
total 80
drwxr-xr-x   20 root     root         4096 Aug 26 03:11 .
drwxr-xr-x   12 root     root         4096 Oct 23 23:31 ..
drwxr-x---    5 ftpuser psaserv      4096 Aug 26 03:11 anon_ftp
drwxr-xr-x    2 root     root         4096 Aug 26 03:11 bin
drwxr-x---    2 ftpuser psaserv      4096 Aug 26 03:11 cgi-bin
drwxr-x---    2 root     psaserv      4096 Oct 19 14:43 conf
drwxr-xr-x    2 root     psaserv      4096 Aug 26 03:11 error_docs
drwxr-xr-x    2 root     root         4096 Aug 26 03:11 etc
drwxr-x---    5 ftpuser psaserv      4096 Oct 16 20:20 httpdocs
drwxr-x---    4 ftpuser psaserv      4096 Aug 26 03:11 httpsdocs
drwxr-xr-x    2 root     root         4096 Aug 26 03:11 lib
drwxr-x---    2 root     psaserv      4096 Aug 26 03:11 pd
drwx------    2 ftpuser root         4096 Aug 26 03:11 private
drwx------    2 root     root         4096 Aug 26 03:11 .ssh
dr-xr-x---    8 root     psaserv      4096 Oct  9 20:33 statistics
drwxr-xr-x    3 root     psaserv      4096 Aug 26 03:11 subdomains
drwxrwxrwt    2 root     root         4096 Aug 26 03:11 tmp
drwxr-xr-x    5 root     root         4096 Aug 26 03:11 usr
drwxr-xr-x    3 root     root         4096 Aug 26 03:11 var
drwxr-xr-x    2 root     psaserv      4096 Aug 26 03:11 web_users

And the domain directory shows:

drwxr-xr-x   20 root     root         4096 Aug 26 03:11 testexpire.com
I am able to browse fine to this test domain from outside the test server (from Win2K PC) no forbidden errors.
 
Thanks..

The permissions are set same for me also when i create a new domain. The GID for htttpdcos is showing psaserv. For all the directories and subdirectores under httpdocs it is showing GID as psacln. is it correct or some thing wrong?

--Buchibabu
 
Under the httpdocs, GID 'psacln' is correct. Have you uploaded an index.html file to the httpdocs? If you uploaded an index.htm then try renaming it to index.html

The basic Plesk config for Apache does not put index.htm in the DirectoryIndex directive (httpd.conf), so until that is reconfigured, then you have to use .html file extensions.
 
I think it is not the problem with the index file. When i run the following command, the default page is coming with out any problem.

chmod 755 httpdocs -R

--Buchibabu
 
Glad to hear your problem is fixed. The only thing I would worry about is setting all files to 755, should only need a minimum of 644 to be readable. Ah, but I guess the dirs would be 755....
 
Back
Top