Author Topic: Internal Server Error  (Read 8218 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Internal Server Error
« 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?

Offline
*
Re: Internal Server Error
« Reply #1 on: March 16, 2019, 02:05:08 PM »
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.

Offline
**
Re: Internal Server Error
« Reply #2 on: March 17, 2019, 02:48:29 AM »
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:
Code: [Select]
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
« Last Edit: March 17, 2019, 02:52:12 AM by pedromidiasf »

Offline
*
Re: Internal Server Error
« Reply #3 on: March 17, 2019, 08:14:33 PM »
Yes, I got the same issue.
All my website are going down because the new CWP6 update.

Quote
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