Difference between revisions of "PHP Notes"
From OpenEMR Project Wiki
Line 30: | Line 30: | ||
{| style="margin: 0 0em 0 0em;" | {| style="margin: 0 0em 0 0em;" | ||
|- | |- | ||
| width=" | | width="150" | <tt style="font-size: 130%">php -v</tt> | ||
| width="400" | PHP Version. | | width="400" | PHP Version. | ||
|- | |- |
Latest revision as of 15:11, 29 May 2014
Files
/etc/php5/apache2/php.ini | PHP Config File |
/usr/share/php5 | Location of sample ini files, ex development, production. |
Configuration
- Backup Default Config File
- sudo mv /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.default
- Create Symlink to Desired Settings File
- cp -s /usr/share/php5/php.ini-development /etc/php5/apache2/php.ini
Testing
- Create File "test.php" with:
- <?php phpinfo(); ?>
Command Line Commands
php -v | PHP Version. |
php -i | PHP Info |