C
C
CeBePHblY2014-11-26 14:05:11
linux
CeBePHblY, 2014-11-26 14:05:11

Different php settings to different Apache2 sites?

apache2 server. It is necessary to make sure that each site has its own PHP settings. I write this:

php_flag        dispay_errors   Off
php_flag        display_startup_errors  Off

1) to the .htaccess file in the root of the site ->>> the site gives a 500 error
2) to the file /etc/apache2/sites-enabled/host-config ->>> nothing happens
in both cases reloaded apache2
in the apache logs such an error .htaccess php_flag no allowed here. I read that it is necessary to edit the Apache config, and where, what, what to edit ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Benkovsky, 2014-11-26
@benbor

the first option should work. write for /etc/apache2/sites-enabled/host-config
AllowOverride All

F
FanatPHP, 2014-11-26
@FanatPHP

instead of php_flag write php_admin_value
And don't forget to correct the errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question