Announcement

Collapse
No announcement yet.

Need help setting up apache and PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help setting up apache and PHP

    Im running Apache 1.3.28 and PHP 4.3.3. I am running Windows 2000 and I did not download thw windows installer verion of PHP for obvious reasons. I have decided to use PHP as a module and not a CGI binary and I have come to a little problem. I am not to knowledgable on Apache or PHP so this is alot like greek to me... I have managed to install PHP great so far except I am down to one little problem here in the install file. This is what it tells me to do, I copied it from the install.txt file...

    After you've set up the file layout properly, you're ready to
    finally configure Apache to load the PHP4 module. Just add the
    following lines to your httpd.conf:

    LoadModule php4_module c:/php/sapi/php4apache.dll
    AddModule mod_php4.c
    AddType application/x-httpd-php .php

    So I am in the Apache httpd.conf file but I am a little confused. There is a Add Module Section and a Load Module section. I am unsure if I am supposed to seperate those commands above and put each of them where they belong or what? Also I notice some of the modules have a # sign next to them. Do I need to add a number sign to these ones as well? Check out my website at www.vorspann.net and you will notice if you click on the Forums button at the top it tries to download my page for some wierd reason. I am assuming this is because I do not have these modules installed?

    thanks
    chris

  • #2
    The LoadModule line should go below the last LoadModule line (in the big group of them) that currently exists in your httpd.conf file. The AddModule line try below the last AddModule line (again in the big group) that currently exists. AddType you should be able to find that line already in your httpd.conf file, if not find the line that goes a bit like this:
    # AddType allows you to tweak mime.types without actually editing it, or to
    and put the AddType line on a new line right below that.

    Comment


    • #3
      Originally posted by tubedogg
      The LoadModule line should go below the last LoadModule line (in the big group of them) that currently exists in your httpd.conf file. The AddModule line try below the last AddModule line (again in the big group) that currently exists. AddType you should be able to find that line already in your httpd.conf file, if not find the line that goes a bit like this:
      # AddType allows you to tweak mime.types without actually editing it, or to
      and put the AddType line on a new line right below that.

      Should the load module and add module lines have the # sign in front of them?

      Comment


      • #4
        Ahh I got it fixed! But hey since you are the guy who created the last 10 posts on a non VB page hack I was just wondering if perhaps you could tell me why I am getting the error I am on my page. Check it out at www.vorspann.net You will see that it says it couldnt connect as Chris Jumonville using no password? I do not know what that is about because my config.php file located under the admin folder has a password in it and they are the same as the ones used to connect to my MySQL database. It used to work just fine until I created a new user name and password for MySQL using phpmyadmin, now it doesnt work at all!? Any idea why? I wasnt sure if I should be connecting as root with no password, although I am not sure if it matters because I have my firewall blocking the MySQL port to everyone on my server. Take into mind that all of this is on my own server not someone elses.

        Thanks
        Chris

        Comment

        Loading...
        Working...
        X