Sunday, March 30, 2014

PHP Configuration For PHP Website Development


-----
PHP Configuration For PHP Website Development

INTRODUCTION

The configuration file (php.ini) is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started. For the CGI and CLI versions, it happens on every invocation.

STEPS

1) FINDING PHP CONFIG FILE.

Click the Source File button besides the PHP Config button in the Configuration Section of UwAmp.

2) EDITING PHP CONFIG FILE.

(If you have configured UwAmp to use Notepad++ to edit the text file, )  Notepad++ shows the content of PHP Config file ie, php.ini
Note: The location shown by the Notepad++ title bar is C:\UwAmp\bin\php\php-5.3.25\php_uwamp.ini. This path may differ subject to the location where UwAmp is stored.

3) GUI Approach To Learn PHP Extensions and Settings.

 UwAmp provides a friendlier interface for you to look at the settings and learn to use them.
3.1) PHP Extensions.
3.2) PHP Settings.

4) Using PHPSecInfo Script to check PHP Configurations.

PhpSecInfo provides an equivalent to the phpinfo() function that reports security information about the PHP environment, and offers suggestions for improvement. It is not a replacement for secure development techniques, and does not do any kind of code or app auditing, but can be a useful tool in a multilayered security approach.
4.1) Download the phpsecinfo.zip here.
4.2) Extract the folder phpsecinfo-20070406, copy it into www folder and rename as “phpsecinfo”.
4.4) Click on More Information link to learn more on the issues mentioned.

FURTHER EXERCISE

Run phpsecinfo on your XAMPP site and compare the results.

No comments:

Post a Comment

Labels