ubuntu - Where are the php files placed after apache is installed?
过去多啦不再A梦2017-06-07 09:23:47
0
2
836
The browser can open normally by inputting localhost. If I want to open a php file, where should the php file be placed so that it can be accessed through localhost?
Look at the ports configured in ports.conf and the directory where each site is configured in sites-available. If you install apache first and then PHP, you may have to put the apache module of PHP in mods-enabled. or mods-available inside.
By default, if you install it using a package manager, your php files will be placed under
/var/www/html
.Look at the ports configured in
ports.conf
and the directory where each site is configured insites-available
.If you install apache first and then PHP, you may have to put the apache module of PHP in
mods-enabled
.or
mods-available
inside.