Home  >  Q&A  >  body text

ubuntu - Where are the php files placed after apache is installed?

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梦2690 days ago848

reply all(2)I'll reply

  • 学习ing

    学习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.

    reply
    0
  • phpcn_u1582

    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.

    reply
    0
  • Cancelreply