Control Web Panel
WebPanel => Apache => Topic started by: Dan11 on March 16, 2019, 01:10:44 PM
-
Today when I logged in the CWP admin, it asked me to select the Default Apache PHP-FPM version, so I selected 7.1.x and it installed it. Then it asked me to chose the default Web Servers, and I selected Apache Only.
After saving and rebuilding configuration, only some sites work, the rest are displaying a 500 Internal Server Error. I checked the error file in /usr/local/apache/logs but there are no errors from that user. The rest of the working sites are logged in the log files.
I checked the sites configurations on the conf.d/vhosts/ folder and they all seem configured properly. I see that the vhosts-ssl.conf in the conf.d is no loger used.
I;m running CWP version: 0.9.8.578 on CentOS6.
Any ideeas?
-
It seems that only the joomla sites are giving this error. I removed Option FollowSymlinks from .htaccess and they are working now.
Also the logs have moved to domlogs.
-
Go to "CWP->Log Viewer" on the panel, select "error log" and then the domain that is causing you trouble, if you see something like this:
bla bla bla date, time whatever (.....) public_html/websites/.htaccess: Option FollowSymlinks not allowed here
Then do this:
Go to each single vHost file contained in "/usr/local/apache/conf.d/vhosts" and allow "FollowSymLinks", by adding it to the "AllowOverride" section, like in the following example:
<Directory "/home/-------------/public_html/websites">
Options -Indexes FollowSymLinks <-delete here
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks <-add here
</Directory>
Restart apache
And it will work
But try at first to do this to a domain that is not working for you, if it does the job do the same for all of them
-
Yes, I got the same issue.
All my website are going down because the new CWP6 update.
Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions
Resolved by added in .htaccess with this line :
Options +SymLinksIfOwnerMatch