Home >Backend Development >PHP Problem >What is the method to successfully configure php and apache

What is the method to successfully configure php and apache

coldplay.xixi
coldplay.xixiOriginal
2021-02-26 17:44:232947browse

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.

What is the method to successfully configure php and apache

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.

What is the method to successfully configure php and apache

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn