C
C
Chvalov2014-08-22 15:32:37
PHP
Chvalov, 2014-08-22 15:32:37

How can a specific site assign its php.ini to ubuntu server with apache2?

Hello, there are a couple of sites for all but one should beat the global php.ini settings.
How can I assign my own php.ini config for this single site?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Chvalov, 2014-08-22
@Chvalov

The issue is resolved: add the parameters I need to the .htaccess file

# Кодировка сайта в Windows-1251
DefaultLanguage ru
AddDefaultCharset windows-1251
php_value default_charset "cp1251"

# Свои параметры (php.ini)
php_flag        short_open_tag  On
php_flag        dispay_errors   On
php_flag        display_startup_errors  On
php_value       upload_max_filesize 16M
I’ll say right away I tried it with suPHP_ConfigPath, but Apache doesn’t understand this and writes something to the log (I won’t say it anymore because I cleaned it)

S
Sergey, 2014-08-22
Protko @Fesor

It's simple, replace with nginx + php-fpm. Or use apache2-mpm-itk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question