ubuntu - Where are the php files placed after apache is installed?
过去多啦不再A梦
过去多啦不再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?

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
学习ing

By default, if you install it using a package manager, your php files will be placed under /var/www/html.

phpcn_u1582

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!