What is the method to successfully configure php and apache

coldplay.xixi
Release: 2023-03-08 10:16:01
Original
2928 people have browsed it

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();
?>
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template