Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

MontanaMan

@MontanaMan
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Changing documentroot in Apache http.conf file causes PHP to stop working
    M MontanaMan

    Thank you for responding. The problem was a minor one. In the fresh install of PHP, the "short_open_tag" in PHP.ini was defaulted to "Off". The phpinfo file in Apache directory opened with "" and the file in the new directory opened with "", so it didn't parse. I've changed the php.ini file with "short_open_tag = On" and all is well now.

    Simple little things can sometimes trip us up.

    Web Development php apache sysadmin help question

  • Changing documentroot in Apache http.conf file causes PHP to stop working
    M MontanaMan

    Hello:

    Windows 10 workstation
    Apache 2.4
    PHP 7.2.

    I've installed Apache and PHP on a Windows 10 workstation and everything (including PHP) works beautifully. But when I change the documentroot in the http.conf file, Apache stops sending .php files to the PHP engine. Apache opens the .php files in the new directory, but the code no longer gets parsed and processed by the php engine (php.exe). Apache no longer runs those files through the php module.

    Here is what I've changed in the http.conf file:

    OLD SETTING:
    DocumentRoot "${SRVROOT}/htdocs"

    NEW SETTING:
    DocumentRoot "C:/WWW"

    When I change it back again, PHP works just fine.

    I've also tried changing the doc_root setting in php.ini, but that doesn't help. Apache loads the .php page, but never sends it to the php server.

    Any thoughts or help?

    Thanks!

    Web Development php apache sysadmin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups