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?
学习ing2017-06-07 09:25:47
By default, if you install it using a package manager, your php files will be placed under /var/www/html
.
phpcn_u15822017-06-07 09:25:47
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.