-
How to modify PHP settings in Ubuntu 14.04?
over 8 years ago
-
over 8 years ago
You can review the live PHP configuration by placing a page with a phpinfo function along with your website files.
To create a file with this command, first change into the directory that contains your website files. For example, the default directory for webpage files for Apache on Ubuntu 14.04 is /var/www/html/:
cd /var/www/html Then, create the info.php file:
sudo nano /var/www/html/info.php
The three files you have there are each meant for different uses.
/etc/php5/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal.
/etc/php5/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup.
/etc/php5/apache2/php.ini is for the PHP plugin used by Apache. This is the one you need to edit for changes to be applied for your Apache setup.
informatica training in chennai | aws training in chennai | hadoop training in chennai
-
1 Comment(s)