PHP Tutorial (Configuration)



Open your "php.ini" file and change the directives exactly as they appear in this example. Tip: Use Windows Notepad to find these directives faster.

Note: register_globals = On, is an optional setting.

display_errors = On ->display_errors = Off
register_globals = Off ->register_globals = On
extension_dir = "./" ->extension_dir = "C:/PHP/ext/"
;extension=php_mysql.dll ->extension=php_mysql.dll
;extension=php_mbstring.dll   -> extension=php_mbstring.dll
;extension=php_gd2.dll   -> extension=php_gd2.dll














Now save your "php.ini" settings.

Open your Abyss Web Server console and click Configure on the host you wish to configure. Now go to "Scripting Parameters" and click Add in the Interpreters table. In the Interpreter's field, click browse and go to "C:\ -> PHP -> php-cgi.exe" (php.exe for PHP4). You should see "C:\PHP\php-cgi.exe" in the form field.

Now I want you to select "PHP Style" for Type.

Click Add in the "Associated Extensions" and type "php" without the quotes, click ok, and again click ok. We will now add a "Custom Environment Variable", which is required for PHP to run.



Click add in the "Custom Environment Variables" table and type "REDIRECT_STATUS" for Name without the quotes and "200" for Value without the quotes. Click ok to exit.



Click ok to exit "Scripting Parameters". Go to "Index Files". Click Add in the "Index Files" table and type "index.php" without the quotes for File Name. Click ok and restart Abyss Web Server.



This will tell you if PHP is working. "phpinfo.php": <?php phpinfo(); ?>

[ Close Window ]