We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Виртуальные хосты Apache+Nginx
Re: Виртуальные хосты Apache+Nginx
mbstring.func_overload может быть определена в конфигурации виртуального хоста, как указано в вашем шаблоне
разве нельзя в шаблоне добавить include .../httpd.local из юзерской папки где юзер сам пропишет
php_admin_value mbstring.func_overload =2 например
разве нельзя в шаблоне добавить include .../httpd.local из юзерской папки где юзер сам пропишет
php_admin_value mbstring.func_overload =2 например
Re: Виртуальные хосты Apache+Nginx
можно... но не стоит... чем меньше возможностей у юзера тем меньше он накосячит.akifievaa wrote:mbstring.func_overload может быть определена в конфигурации виртуального хоста, как указано в вашем шаблоне
разве нельзя в шаблоне добавить include .../httpd.local из юзерской папки где юзер сам пропишет
php_admin_value mbstring.func_overload =2 например
что касается шаблона под битрикс он полностью рабочий опробован на 10+ магазинах на битриксе.
что касается mbstring.func_overload =2... Вы зациклились на 2... битрикс будет работать с любым оверлодом 2 минимальный, некоторые модули из маркета, выложенные пользователями и написанные ногами, требуют 4... поэтому в шаблоне стоит 7 максимальный
Re: Виртуальные хосты Apache+Nginx
Я вам уже сообщил что делать. Пропишите в php.ini и забудьте
В ближайшее время мы не сможем реализовать данную опцию. Есть много приоритетных задач на предстоящие релизы.
В ближайшее время мы не сможем реализовать данную опцию. Есть много приоритетных задач на предстоящие релизы.
Re: Виртуальные хосты Apache+Nginx
Знаю что тема не актуальна но может кому то и поможет
sudo /home/admin/conf/web/apache2.conf
и добавляем запись к тому хосту которому нужно
<IfModule mod_php5.c>
php_value default_charset utf8
php_admin_value mbstring.func_overload 2
</IfModule>
sudo /home/admin/conf/web/apache2.conf
и добавляем запись к тому хосту которому нужно
<IfModule mod_php5.c>
php_value default_charset utf8
php_admin_value mbstring.func_overload 2
</IfModule>
Re: Виртуальные хосты Apache+Nginx
Скопировал шаблон от php-7 добавил туда строки php_admin_value mbstring.func_overload 7.demian wrote: ↑Wed Feb 12, 2014 5:25 amCode: Select all
# cat /usr/local/vesta/data/templates/web/httpd/bitrix.tpl <VirtualHost %ip%:%web_port%> ServerName %domain_idn% %alias_string% ServerAdmin %email% DocumentRoot %docroot% ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/ Alias /vstats/ %home%/%user%/web/%domain%/stats/ Alias /error/ %home%/%user%/web/%domain%/document_errors/ SuexecUserGroup %user% %group% CustomLog /var/log/httpd/domains/%domain%.bytes bytes CustomLog /var/log/httpd/domains/%domain%.log combined ErrorLog /var/log/httpd/domains/%domain%.error.log <Directory %docroot%> AllowOverride All Options +Includes -Indexes +ExecCGI php_admin_value upload_tmp_dir %home%/%user%/tmp php_admin_value upload_max_filesize 100M php_admin_value max_execution_time 600 php_admin_value post_max_size 100M php_admin_value memory_limit 128M php_admin_flag mysql.allow_persistent off php_admin_flag safe_mode off php_admin_value session.save_path %home%/%user%/tmp php_admin_value mbstring.func_overload 7 </Directory> <Directory %home%/%user%/web/%domain%/stats> AllowOverride All </Directory> <IfModule mod_ruid2.c> RMode config RUidGid %user% %group% RGroups apache </IfModule> <IfModule itk.c> AssignUserID %user% %group% </IfModule> Include %home%/%user%/conf/web/httpd.%domain%.conf* </VirtualHost>
Code: Select all
# cat /usr/local/vesta/data/templates/web/httpd/bitrix.stpl <VirtualHost %ip%:%web_ssl_port%> ServerName %domain_idn% %alias_string% ServerAdmin %email% DocumentRoot %sdocroot% ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/ Alias /vstats/ %home%/%user%/web/%domain%/stats/ Alias /error/ %home%/%user%/web/%domain%/document_errors/ SuexecUserGroup %user% %group% CustomLog /var/log/httpd/domains/%domain%.bytes bytes CustomLog /var/log/httpd/domains/%domain%.log combined ErrorLog /var/log/httpd/domains/%domain%.error.log <Directory %sdocroot%> AllowOverride All SSLRequireSSL Options +Includes -Indexes +ExecCGI php_admin_value mbstring.func_overload 7 php_admin_value upload_tmp_dir %home%/%user%/tmp php_admin_value upload_max_filesize 100M php_admin_value max_execution_time 600 php_admin_value post_max_size 100M php_admin_value memory_limit 128M php_admin_flag mysql.allow_persistent off php_admin_flag safe_mode off php_admin_value session.save_path %home%/%user%/tmp </Directory> <Directory %home%/%user%/web/%domain%/stats> AllowOverride All </Directory> SSLEngine on SSLVerifyClient none SSLCertificateFile %ssl_crt% SSLCertificateKeyFile %ssl_key% %ssl_ca_str%SSLCertificateChainFile %ssl_ca% <IfModule mod_ruid2.c> RMode config RUidGid %user% %group% RGroups apache </IfModule> <IfModule itk.c> AssignUserID %user% %group% </IfModule> Include %home%/%user%/conf/web/shttpd.%domain%.conf* </VirtualHost>
Я так понимаю с 7 версией пхп эта магия не пройдет?
Re: Виртуальные хосты Apache+Nginx
viewtopic.php?f=28&t=16328#p67754 php 7.1 дефолтный