Home>Article>Backend Development> How to set the homepage in php

How to set the homepage in php

藏色散人
藏色散人 Original
2020-08-15 09:05:11 7009browse

How to set the homepage in php: first find and open the "conf/httpd.conf" file; then add the content as "DirectoryIndex index.html index.php index.htm"; then configure apache and load the PHP module; Finally restart.

How to set the homepage in php

Recommended: "PHP Video Tutorial"

php configuration default page

1. PHP configuration default page, in conf/httpd.conf in the apache installation directory, add the following figure

 DirectoryIndex index.html index.php index.htm l.php 

2. Configure apache to load the PHP module, in conf/httpd.conf in the apache installation directory, add the following figure

3. After the configuration is completed, be sure to remember to restart the apache service, otherwise the configuration will not take effect.

The above is the detailed content of How to set the homepage in php. 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