Home>Article>Backend Development> How to set the homepage in php
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.
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!