Personal tools

PHP Notes

From OpenEMR Project Wiki

Jump to: navigation, search

Contents

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