the directory to browse to is PHP and the file is php5apache.dll -
in the conf file it reads LoadModule php5_module C:/PHP/php5apache.dll
Apache/PHP
Do you want me to post the full conf file?
note: for Apache2 use php5apache2.dll .. not .. php5apache.dll .. both are found in php
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php
What am i doing wrong??
I still get this: Syntax error on line 953 of C:/Program Files/Apache Group/Apache2/conf/httpd.con
f:
Cannot load C:/PHP/php5apache2.dll into server: The specified module could not b
e found.
There is a folder on the root of my C drive called PHP, within that is no files except a sub folder called sapi. In that is the following files:
php5ts.dll, php.exe and php5apache2.dll
I cant post the whole conf file as its too long but this is the bottom part:
### Section 3: Virtual Hosts
#
VirtualHost: If you want to maintain multiple domains/hostnames on your
machine you can setup VirtualHost containers for them. Most configurations
use only name-based virtual hosts so the server doesn't need to worry about
IP addresses. This is indicated by the asterisks in the directives below.
#
Please see the documentation at
<URL:http://httpd.apache.org/docs-2.0/vhosts/>
for further details before you try to setup virtual hosts.
#
You may use the command line option '-S' to verify your virtual host
configuration.
#
Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
VirtualHost example:
Almost any Apache directive may go into a VirtualHost container.
The first VirtualHost section is used for requests without a known
server name.
#
#<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php
Quick google search found this
http://www.phparch.com/discuss/index.php/m/3168/685/0///0/#msg_3168
I tried it and the dos windows opens briefly then goes...does that mean its worked?
It also says running all apache services!!!!
Put phpinfo.php into your Apache htdocs root directory and take a look at your phpinfo.php file to see what is working in php ..
http://localhost:8080/phpinfo.php
change the URL to match your configuration (e.g. port might be different)
It says the connection was refused when trying to connect to localhost (using firefox)
phpinfo.php reads <?phpinfo()?>
How do i know what port is? i know 80 is the http port
I've just read this ..
There is a folder on the root of my C drive called PHP, within that is no files except a sub folder called sapi. In that is the following files:
php5ts.dll, php.exe and php5apache2.dll
This is definitely wrong ..
I would start again and install the full PHP5 into c:\php
(backup the other stuff meanwhile).
And follow the PHP5 installation instructions.
....
Steps ..
[1] Install Apache
[2] Check that you can see Apache default page at http://localhost
[3] Check that port does not clash with another running server (e.g. IIS) .. if so change in httpd.conf
[4] Install PHP5 in C:\php
Ok thanks, which one is it best to install?
the complete source code? e.g. the first one
Binary installer is quicker .. not source
this link
ok, the 3rd one down i will install and let you know. Thank you so much for your help.
All done and installed. I can view the test apache configuration page.
one other thing, if i type in http://localhost/myfirst.php as this is in the htdocs directory on apache it says Bad Request
Your browser sent a request that this server could not understand.
Apache/2.0.54 (Win32) Server at localhost Port 80
btw im not running iis
Turn off friendly HTTP error messages in IE.
To do this go to Tools -> Internet Options -> Advanced.
Uncheck show friendly HTTP error messages.
In httpd.conf amend this ..
DirectoryIndex index.html index.html.var index.php
and check you have these (for port 80)
Listen 127.0.0.1:80
ServerName 127.0.0.1:80
d~l wrote:Turn off friendly HTTP error messages in IE.
To do this go to Tools -> Internet Options -> Advanced.
Uncheck show friendly HTTP error messages.
In httpd.conf amend this ..
DirectoryIndex index.html index.html.var index.php
and check you have these (for port 80)
Listen 127.0.0.1:80
ServerName 127.0.0.1:80
Ok, i have amended the top bit in the conf file. Where do i look for the port settings? Obviously in the firewall somewhere. I have a belkin router with a firewall and the firewall is turned on my pc (xphome)
Listen 127.0.0.1:80
ServerName 127.0.0.1:80
Above settings are to be found in httpd.conf .. search the file .. "Listen" & "ServerName"
Your firewall setting is quite a separate matter. (I use ZoneLab).
Use port monitoring utility like neomonitor ..
http://www.nycsoftware.com/neomonitor/
or portmon and procexpt from http://www.sysinternals.com
to monitor which ports / processes are running.
Apache should run as a service ..
look in Start > Control Panel > Administrative Service > Services
Ive installed neomonitor and got the localhost page ok.
i have put a file called today in the htdocs folder so the url should be http://localhost/today.php
the text in the file is <html>
<head>
<title>Today's Date</title>
</head>
<body>
<p>Today's Date (according to this web server) is <?php
echo( date("l, F dS Y.") ) ;?></p>
</body>
</html>
but i get Your browser sent a request that this server could not understand.