403 Forbidden-Permissions problem

DAuser4

Verified User
Joined
Jan 11, 2011
Messages
60
Hello!
I have a problem with permissions! After insall Directadmin, I must to change permissions to 755 for domains folder, becouse when exemple I want to install joomla, I get a message: You don't have permission to access /installation/index.php on this server.
What should I do, to resolve this problem? Please, help me.!
Thanks!
DAuser4
 
what is better? mod_riud2 or suPHP?

Thanks for replay!
Now, whit new reinstalled Directadmin,I ask, what is better,and simple the installing, mod_riud2 or suPHP? The previous installing I get a problem with -500 Internal server error-, I tried to reinstall the all, and I want to start whit a new instaling.
 
In httpd error_log

In httpd error_log appear:
[Wed Jan 26 22:07:20 2011] [notice] caught SIGTERM, shutting down
[Wed Jan 26 22:07:22 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jan 26 22:07:22 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 26 22:07:23 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jan 26 22:07:23 2011] [notice] mod_ruid2/0.9.3 enabled
[Wed Jan 26 22:07:23 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 configured -- resuming normal operations
 
User scsi asked you to post a content of a apache's error log for a certain domain, on which you've 500 error.

Code:
cat /var/log/httpd/domains/DOMAIN_HERE.error.log
 
error.log messages

The error.log messages:
[Thu Jan 27 12:36:42 2011] [error] [client 89.123.219.190] SecurityException in Application.cpp:175: Calling user is not webserver user!
[Thu Jan 27 12:36:42 2011] [error] [client 89.123.219.190] Premature end of script headers: index.php
 
Now please for that domain and user (domain's owner):

Code:
cat /usr/local/directadmin/data/users/USERNAME_HERE/httpd.conf

You might want to hide real domain name - that's ok.
 
500 Internal server error

I get this messages( domain name is "hide")
<VirtualHost 178.63.252.75:80 >


ServerName www.domain.com
ServerAlias www.domain.com domain.com
ServerAdmin [email protected]
DocumentRoot /home/admin/domains/domain.com/public_html
ScriptAlias /cgi-bin/ /home/admin/domains/domain.com/public_html/cgi-bin/

UseCanonicalName OFF

#SuexecUserGroup admin admin
CustomLog /var/log/httpd/domains/domain.com.bytes bytes
CustomLog /var/log/httpd/domains/domain.com.log combined
ErrorLog /var/log/httpd/domains/domain.com.error.log
RMode config
RUidGid admin admin
RGroups apache

<Directory /home/admin/domains/domain.com/public_html>
Options +Includes -Indexes



suPHP_Engine ON
suPHP_UserGroup admin admin

</Directory>



</VirtualHost>
 
virtual:host2.conf file

This is the virtual:host2.conf file -It is ok?
|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html|
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp:/usr/local/lib/php/|
<VirtualHost |IP|:80 |MULTI_IP|>
|CUSTOM|
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/cgi-bin/|
ServerName www.|DOMAIN|
ServerAlias www.|DOMAIN| |DOMAIN| |SERVER_ALIASES|
ServerAdmin |ADMIN|
DocumentRoot |DOCROOT|
|CGI|

|USECANONICALNAME|

#SuexecUserGroup |USER| |GROUP|
RMode config
RUidGid |USER| |GROUP|
RGroups apache
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

<Directory |DOCROOT|>
Options +Includes -Indexes
|*if CLI="1"|
php_admin_flag engine |PHP|
<IfModule !mod_php6.c>
php_admin_flag safe_mode |SAFE_MODE|
</IfModule>
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'
|*endif|
|*if OPEN_BASEDIR="ON"|
php_admin_value open_basedir |OPEN_BASEDIR_PATH|
|*endif|
|*if SUPHP="1"|
suPHP_Engine |PHP|
suPHP_UserGroup |USER| |GROUP|
|*endif|
</Directory>
|HANDLERS|
|MIMETYPES|
RMode config
RUidGid |USER| |GROUP|
RGroups apache

</VirtualHost>
 
500 Internal server error

Yes, after mod_ruid2 I want to erase it,(becouse happened this 500error), and install suPHP. But now I'll reinstall the all, and install only suPHP.
Thanks for the help!
 
With bad permissions and ownership on PHP scripts and directories, be sure, that you'll again 500 error.

With mod_suphp no php_value and no php_flag are allowed within .htaccess (at least without additional module).
 
Back
Top