How to successfully configure php and apache: first check whether php is configured successfully, write a [phpinfo.php] file in the root directory of [wamp/www]; then open the web page and enter localhost. If the content list can be output, It shows that the configuration has been successful.
The operating environment of this tutorial: Windows 7 system, PHP version 5.6, DELL G3 computer. This method is suitable for all brands of computers.
How to successfully configure php and apache:
The PHP configuration file is php.ini Check whether php is configured successfully and write a phpinfo.php in the wamp/www root directory file, the content is
<?php phpinfo(); ?>
Then you can open the web page and enter localhost or http://127.0.0.1. If the content list can be output, it means that the configuration has been successful.
Apache's configuration file is hpptd.conf. To check whether apache is configured successfully, you can first use the cmd command netstat-aon to check whether there are any programs occupying port 80; then check Look at the Apache taskbar icon to see if there is a green logo displayed. If so, it proves successful.
Related free learning recommendations: php programming (video)
The above is the detailed content of What is the method to successfully configure php and apache. For more information, please follow other related articles on the PHP Chinese website!