PHP does not work after XAMPP installation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Morgan
    New Member
    • Jan 2011
    • 1

    #1

    PHP does not work after XAMPP installation

    I have just installed the XAMPP package using all the defaults. After the installation I started all the services. There are two file in the htdocs directory; 1) index.html and index.php. When I run the .html file it produces "It Works!' When I run the .php file I get "Something is wrong with the XAMPP installation :-( ". I tried re-installing XAMPP with the same result.

    Any suggestions?

    Thanks,

    Bob
  • paulrajj
    New Member
    • Sep 2008
    • 47

    #2
    Hi Bob,

    Check your ServerRoot and DocumentRoot path in apache/conf/http.conf file.

    Comment

    • JKing
      Recognized Expert Top Contributor
      • Jun 2007
      • 1206

      #3
      Are you using http://localhost/index.php or are you trying to run it directly from the file?

      Comment

      Working...