Bilgi Bankası & Downloads
Bilgi bankası ekibimiz tarafından hazırlanmış dokümanlardan oluşmaktadır. Lütfen bir kategori seçin:
Articles
Error 500 .htaccess: php_value not allowed here
Q: I get these error in log and my website shows error 500:
.htaccess: php_value not allowed here
.htaccess: php_flag not allowed here
A: By default php - as installed by cPanel - is set to suPHP so php_value and php_flag commands are not allowed in .htaccess
and will result in the above error messages in webserver log.
In case of suPHP you need to:
1. remove all remove php_value and php_flag from your .htaccess files (also rom subdirectories of public_html)
2. in public_html/.htaccess add the following (replace USERNAME with your user name):
suPHP_ConfigPath /home/USERNAME/public_html
order allow,deny
deny from all
3. copy system-wide php.ini to your public_html:
cp /usr/local/lib/php.ini ~/public_html
4. append your custom php settings to your public_html/php.ini for example:
register_globals = Off
post_max_size = 10M
upload_max_filesize = 10M
- © 2016-2024 JVMHost.com All rights are reserved.