Menu

New install need some help please

Help
2004-09-14
2013-04-15
  • Nobody/Anonymous

    Hi!

    I just installed the WebServ 1.2.6.0 and can pull up the index.htm file in the C:\WebServ\wwwroot\htdocs\index.htm area I see that I have installed apache correctly and there are no errors.

    I placed a hello.php file with code that looks like this:

    <html>
    <head>
      <title>PHP Test</title>
    </head>
    <body>
    <?php echo '<p>Hello World</p>'; ?>
    </body>
    </html>

    into the wwwroot\htdocs folder but when I try to access that file via my browser I only get the code output and not the expected result of a simple "Hello World" text.

    I don't have any errors in my log files, and the apache2 service is running. 

    I'm very newbie to this whole thing... I see that I can use the Start/Programs/WebServ menu to edit some files in Apache and in PhP - but I have no idea what to edit... I'm confused by the documentation a bit as well.  Do I need to edit something or did the WebServ installation do all that for me?

     
    • Nobody/Anonymous

      uh ignore this, I thought this didn't post so I ended up putting it in twice. :/

       
    • Anomoli

      Anomoli - 2004-09-30

      I just installed the WebServ 1.2.6.0 and can pull up the index.htm file in the C:\WebServ\wwwroot\htdocs\index.htm area I see that I have installed apache correctly and there are no errors.

      I placed the phpinfo.php file

      <?php phpinfo(); ?>

      into the wwwroot\htdocs folder but when I try to access that file via my browser I only get the code output and not the expected result of a phpinfo.php file

      I don't have any errors in my log files, and the apache2 service is running.

      I'm very new to this whole thing... and that many others are having the same issue. Can any one please help so that i can get started on the fun stuff.

      PS. i have also purchased a book and see that if i were to install all of these seperatly that i need to make some changes to the PHP.ini file do i need to do that here? please help im dying to get started.

       
    • Mike Dessaint

      Mike Dessaint - 2004-10-01

      all the config files are pre configured to work out of the box

      what ver of php did you install, 4.3.9 or 5.0.2?

       
    • Anomoli

      Anomoli - 2004-10-01

      The ver that came with webserv if i open php i see ver5 if i look in the apache conf file i see ver 4
      so i added the line
      loadmodule php5_module C:/php-version/sapi/php5apache2.dll

      I then saved and restarted apache and still get the same thing

       
    • Nobody/Anonymous

      you should see 2 php lines
      1 for php4 and 1 for php5

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.