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:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
uh ignore this, I thought this didn't post so I ended up putting it in twice. :/
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.
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?
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
you should see 2 php lines
1 for php4 and 1 for php5