Author Topic: after php-fpm install & steps ... httpd is stoped  (Read 11084 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
after php-fpm install & steps ... httpd is stoped
« 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!
« Last Edit: May 23, 2019, 07:09:44 AM by mouchoon »

Offline
*****
Re: after php-fpm install & steps ... httpd is stoped
« Reply #1 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

You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: after php-fpm install & steps ... httpd is stoped
« Reply #2 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!!?

Offline
*
Re: after php-fpm install & steps ... httpd is stoped
« Reply #3 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?

Offline
*
Re: after php-fpm install & steps ... httpd is stoped
« Reply #4 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?

Offline
*****
Re: after php-fpm install & steps ... httpd is stoped
« Reply #5 on: May 24, 2019, 10:37:14 AM »
@mouchoon, check the log file in /usr/local/apache/domlogs/DOMAIN.error.log
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: after php-fpm install & steps ... httpd is stoped
« Reply #6 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?

Offline
*****
Re: after php-fpm install & steps ... httpd is stoped
« Reply #7 on: May 28, 2019, 06:51:25 AM »
FollowSymLinks is disabled by default for security reason.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services