Difference between revisions of "PHP Notes"

From OpenEMR Project Wiki
Line 19: Line 19:
*Create Symlink to Desired Settings File
*Create Symlink to Desired Settings File
:<tt style="font-size: 130%">cp -s /usr/share/php5/php.ini-development /etc/php5/apache2/php.ini</tt>
:<tt style="font-size: 130%">cp -s /usr/share/php5/php.ini-development /etc/php5/apache2/php.ini</tt>
<br>
==Testing==
*Create File "test.php" with:
:<tt style="font-size: 130%"><?php phpinfo(); ?></tt>
<br>

Revision as of 15:04, 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(); ?>