Control Web Panel

WebPanel => CentOS 6 Problems => Topic started by: mouchoon on May 23, 2019, 06:39:55 AM

Title: after php-fpm install & steps ... httpd is stoped
Post 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!
Title: Re: after php-fpm install & steps ... httpd is stoped
Post by: Igor S. on May 23, 2019, 08:19:30 AM
Hi, seems like you do not have the required modules (log_config_module and logio_module) are active. Check httpd.conf

Title: Re: after php-fpm install & steps ... httpd is stoped
Post by: mouchoon on May 23, 2019, 09:15:33 PM
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!!?
Title: Re: after php-fpm install & steps ... httpd is stoped
Post by: mouchoon on May 24, 2019, 07:57:26 AM
the problem for .htaccsess  file in root
if remove this, my sites work
but need for .htaccess for url rewriting

where is problem?
Title: Re: after php-fpm install & steps ... httpd is stoped
Post by: mouchoon on May 24, 2019, 10:03:45 AM
my sites is created with joomla!

the standard .htaccess file get error
but when replace .htaccess with this content, correct!

Code: [Select]
<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?
Title: Re: after php-fpm install & steps ... httpd is stoped
Post by: Igor S. on May 24, 2019, 10:37:14 AM
@mouchoon, check the log file in /usr/local/apache/domlogs/DOMAIN.error.log
Title: Re: after php-fpm install & steps ... httpd is stoped
Post by: mouchoon on May 25, 2019, 05:14:40 PM
@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?
Title: Re: after php-fpm install & steps ... httpd is stoped
Post by: Igor S. on May 28, 2019, 06:51:25 AM
FollowSymLinks is disabled by default for security reason.