PHP-Apache problem
Results 1 to 4 of 4

Thread: PHP-Apache problem

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    37

    Question 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.

  2. #2
    Elite Hacker
    Join Date
    Mar 2003
    Posts
    1,407
    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.

  3. #3
    Trumpet-Eared Gentoo Freak
    Join Date
    Jan 2003
    Posts
    992
    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
    Come and check out our wargame-site @ http://www.rootcontest.org
    We chat @ irc.smdc-network.org #lobby

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,255
    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
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides