Hello, after update from custombuild to custombuild 2, I see Error 500 on the page. Also in Apache error logs I have:
DirectAdmin 1.63.3
PHP Version 7.0.33
Debian 9
Apache 2.4.51
CakePHP 2.9.2
httpd.conf for domain mydomain.com is:
Adding this below also dont work.
All rebuild and nothing. If someone can help me, that will be great !
Code:
AH01630: client denied by server configuration: /home/admin/domains/mydomain.com/public_html/.env
DirectAdmin 1.63.3
PHP Version 7.0.33
Debian 9
Apache 2.4.51
CakePHP 2.9.2
httpd.conf for domain mydomain.com is:
Code:
<Directory "/home/admin/public_html">
<FilesMatch "\.(inc|php|phtml|phps|php70)$">
AddHandler "proxy:unix:/usr/local/php70/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php70
</FilesMatch>
<IfModule mod_fcgid.c>
SuexecUserGroup admin admin
</IfModule>
</Directory>
<VirtualHost IP:80 >
ServerName www.mydomain.com
ServerAdmin [email protected]
DocumentRoot /home/admin/domains/mydomain.com/public_html
ScriptAlias /cgi-bin/ /home/admin/domains/mydomain.com/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup admin admin
</IfModule>
CustomLog /var/log/httpd/domains/mydomain.com.bytes bytes
CustomLog /var/log/httpd/domains/mydomain.com.log combined
ErrorLog /var/log/httpd/domains/mydomain.com.error.log
<Directory /home/admin/domains/mydomain.com/public_html>
<FilesMatch "\.(inc|php|phtml|phps|php70)$">
<If "-f %{REQUEST_FILENAME}">
#ProxyErrorOverride on
AddHandler "proxy:unix:/usr/local/php70/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php70
</If>
</FilesMatch>
</Directory>
RewriteEngine on
RewriteOptions inherit
</VirtualHost>
<VirtualHost IP:443 >
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/admin/domains/mydomain.com.cert.combined
SSLCertificateKeyFile /usr/local/directadmin/data/users/admin/domains/mydomain.com.key
ServerName www.mydomain.com
ServerAdmin [email protected]
DocumentRoot /home/admin/domains/mydomain.com/private_html
ScriptAlias /cgi-bin/ /home/admin/domains/mydomain.com/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup admin admin
</IfModule>
CustomLog /var/log/httpd/domains/mydomain.com.bytes bytes
CustomLog /var/log/httpd/domains/mydomain.com.log combined
ErrorLog /var/log/httpd/domains/mydomain.com.error.log
<Directory /home/admin/domains/mydomain.com/private_html>
<FilesMatch "\.(inc|php|phtml|phps|php70)$">
<If "-f %{REQUEST_FILENAME}">
#ProxyErrorOverride on
AddHandler "proxy:unix:/usr/local/php70/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php70
</If>
</FilesMatch>
</Directory>
RewriteEngine on
RewriteOptions inherit
</VirtualHost>
Adding this below also dont work.
Code:
<Directory /home/admin/domains/mydomain.com/public_html>
Require all granted
</Directory>
All rebuild and nothing. If someone can help me, that will be great !
Last edited: