Control Web Panel
WebPanel => CentOS 6 Problems => Topic started by: mouchoon on May 23, 2019, 06:39:55 AM
-
hello!
by following the steps of installing php-fpm i get this error
Stopping httpd: [FAILED]
Starting httpd: AH00526: Syntax error on line 9 of /usr/local/apache/conf.d/vhosts/****.com.conf:
Invalid command 'CustomLog', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
line 9-11 of vhosts/****.com.conf is:
CustomLog /usr/local/apache/domlogs/****.com.bytes bytes
CustomLog /usr/local/apache/domlogs/****.com.log combined
ErrorLog /usr/local/apache/domlogs/****.com.error.log
please help me!
-
Hi, seems like you do not have the required modules (log_config_module and logio_module) are active. Check httpd.conf
-
tanks Igor
after add this two lines solve httpd problem:
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
but now get the 500 Internal Server Error on the sites
fix permissions had no effect!
how to solve!!?
-
the problem for .htaccsess file in root
if remove this, my sites work
but need for .htaccess for url rewriting
where is problem?
-
my sites is created with joomla!
the standard .htaccess file get error
but when replace .htaccess with this content, correct!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Does this cause security problems?
-
@mouchoon, check the log file in /usr/local/apache/domlogs/DOMAIN.error.log
-
@mouchoon, check the log file in /usr/local/apache/domlogs/DOMAIN.error.log
error is: [ .htaccess: Option FollowSymlinks not allowed here ]
in .htaccess file=> comment it out this line ->>> Options +FollowSymlinks
problem solved
but, Is this solution safe way?
-
FollowSymLinks is disabled by default for security reason.