Onfigurar PHP
Onfigurar PHP
3. Unzip all the files in the directory you created. The PHP folder will now
contain several other folders and about 30 files.
4. In the PHP folder, locate the file called php.ini-development. Make a copy of it
and rename the copy php.ini
Advertisements
REPORT THIS AD
Go to the Error Handling ang Logging Section and locate error_reporting = E_ALL &
~E_NOTICE and change it to error_reporting = E_ALL
This will ensure that your PHP is robust.
Go to the Path and Directories Section and locate extension_dir = �./� and change
it to extension_dir = �C:\php\ext\�
NOTE: Change the path to where you extracted the PHP files.
Go to the Dynamic Extensions Section. You will see a long list of titled Windows
Extensions. You can enable these extra features any time by removing the semicolon
from the beginning of the line for the extension you want. Here�s a list of
important extensions:
;extension=php_mbstring.dll
;extension=php_gd2.dll
3. A smaller dialog box will open. Edit the Variable value field. Insert the path
where you placed your PHP folder. Click OK
4. Create a System Variable with variable name PHPRC. The variable value is the
path to your PHP folder.
2. Find the list of items that being with LoadModule. At the end of the list, add
LoadModule php5_module �C:/php/php5apache2_2.dll� (for Apache 2.2)
LoadModule php5_module �C:/php/php5apache2.dll� (for Apache 2.0)
2. Save the file as index.php. Place it in the htdocs folder located in your Apache
folder.(eg. C:\Program Files\Apache Software Foundation\Apache2.2\htdocs)
3. Open your web browser and type in the url http://localhost/index.php. If PHP
installation was successful, this would display all the information about your PHP
installation.