after php-fpm install & steps ... httpd is stoped

Started by mouchoon, May 23, 2019, 06:39:55 AM

Previous topic - Next topic

mouchoon

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!

Igor S.

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

mouchoon

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!!?

mouchoon

the problem for .htaccsess  file in root
if remove this, my sites work
but need for .htaccess for url rewriting

where is problem?

mouchoon

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?

Igor S.

@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

mouchoon

Quote from: Igor S. on May 24, 2019, 10:37:14 AM
@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?

Igor S.

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