-
August 13th, 2004, 03:27 PM
#1
Member
PHP-Apache problem
Hello I have a question regarding my PHP-APACHE configuration. I have already set up and confugured apache-php which is in windows btw. When I run the http://localhost, my index.php works fine but when I started running several scripts, it's not running at all. Instead it opens up my dreamweaver app. I also have a guestbook.php the one that when I click the submit button, the add.php is bing asked by my browser to download it or open. I'm quite confused on those parts. Can you guys help me. Thanks in advance.
-
August 13th, 2004, 04:35 PM
#2
So you already did something like this?
# For PHP 4 do something like this:
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
http://www.php.net/manual/en/install...ws.apache2.php
Making changes depending on your php version and your apache version.
here is for apache 1.3.x http://www.php.net/manual/en/install...ws.apache1.php
If you already did those things I don't know what to say except make sure you have restarted apache, or the changes won't take effect.
-
August 13th, 2004, 05:17 PM
#3
If you point your browser to a php page, and you don't get it just right, your php-module ain't loaded right.
Try to invoke a 404 (PAge not found), normally some webserver statistics or signature are given.
If you don't see php or mod_php in that sig it ain't installed right.
CHeck h3r3tic's links and try to check if php got loaded. Check your startuplog.
Cheers
-
August 13th, 2004, 08:39 PM
#4
Originally posted here by .: Shrekkie :.
If you point your browser to a php page, and you don't get it just right, your php-module ain't loaded right.
Try to invoke a 404 (PAge not found), normally some webserver statistics or signature are given.
Don't even need the 404. Just telnet to the port and look at the server header. Something like:
telnet <server> 80
HEAD / HTTP/1.1
Should generate the headers. You should see something like:
Server: Apache/2.0.50 (Unix)
Chris Shepherd
The Nelson-Shepherd cutoff: The point at which you realise someone is an idiot while trying to help them.
\"Well as far as the spelling, I speak fluently both your native languages. Do you even can try spell mine ?\" -- Failed Insult
Is your whole family retarded, or did they just catch it from you?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|