2. Run PHP in Apache mode For PHP5, you need to configure the following:
After the settings are completed, you need to start the Apache server and then conduct a test , to verify that PHP is working properly. To do this, you need to create a new "phpinfo.php" test program in the Web virtual directory. By default, the virtual directory is located in the htdocs folder under the Apache directory, such as "D:/usr/local/apache2/htdocs". Below is the content of the phpinfo.php file:
Enter in the browser: http://localhost/phpinfo.php, if you can see php version 5 interface, it means the installation is successful. |