- Forums
- PHP
- Perfect Setup PHP.INI Configuartion Example Scripts Best Configure File PHP Linux
This Page Contains information about Perfect Setup PHP.INI Configuartion Example Scripts Best Configure File PHP Linux By wallpaperama in category PHP with 0 Replies. [1059], Last Updated: Sat May 18, 2024
wallpaperama
Sun Jul 15, 2007
0 Comments
613 Visits
if you just got a new dedicated server from webune.com one of the best way to setup your web server is to configure your php.ini.
i've found that when you make these configuration changes, your server and scripts work better. but its not as secured, there are alot of scripts that required these setting. so make sure to read their instalation requirements. but this works for me when i get a new linux server for my customers. note: this works for fedoar, rehat distributions.
login as root
PHP.INI SETTINGS
open your php.ini file with this command:
nano /etc/php.ini
now look for these lines and make them exactly like these:
Turn on register_global
register_global = On
Turn on register_long_arrays
register_long_arrays = On
Set precision to 12
precision = 12
allow_call_time_pass_reference = On
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
APACHE CONFIGURATION
nano /etc/httpd/conf/httpd.conf
Find this line and remove the # (if any)
LoadModule rewrite_module modules/mod_rewrite.so
restart apache server with this command:
/etc/init.d/httpd restart