#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    At home I'm used to Apache, PHP3 and MySQL on win95. However I need to set up a test-environment at work. I've installed Red Hat 6.1, MySQL 3.22.32, PHP 4.0.0 and Apache 1.3.12. But I still need to do a re-make for Apache after installing PHP. When I use the command ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libmodphp4.a everuthing seems to go okay, even when I run make and make install everything goes fine. Howevre when I check httpd -l I don't see the mod_php4.c listed. Does anybody know how to fix this.

    Thankx

    ------------------
    Good luck,
    Bas

    ------------------
    E-mail me at: b.vandermeijden@pecoma.nl
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>Howevre when I check httpd -l I don't see the mod_php4.c listed.

    You are not supposed to see it from there. What you likely to see is 'http_core.c' and 'mod_so.c'.

    >>Does anybody know how to fix this.
    Nothing needs to be fixed. Please tell us what is your actual problem.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    According to the documentation on php.net I should see the mod_php4.c file in the same list as http_core.c and mod_so.c.

    But what actually is happening is that the browser want to download the files. I had it on my home system, but that was caused by an AddHandler. There aren't any there right now on my work, so.......

    Thanks
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Add this line to your httpd.conf within the <IfModule mod_mime.c> and </IfModule>.

    AddType application/x-httpd-php .php .php4

    Then run ./apachectl graceful
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    Add this line to your httpd.conf within the <IfModule mod_mime.c> and </IfModule>.

    AddType application/x-httpd-php .php .php4

    Then run ./apachectl graceful


    Did that, but no improvement.

    I made a test.php4 with <?php phpinfo(); ?>. I also made similar files called test.php and test.php3.

    The test.php now asks me to download the file, the test.php3 shows the code (obvious, because it doesn't know the mime-type) and the test.php4 takes forever to download and still hasn't timed out after 5 minutes. So now I'm totally puzzled.

    [This message has been edited by MeijdenB (edited June 02, 2000).]
  10. #6
  11. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Okay. Let's start it over. Please go to: http://www.devshed.com/Talk/Forums/F...ML/000020.html
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    Okay deleted everything and started from scrath with those instructions. I didn't install gd and jpeg. Everything installed perfectly (eg no errors ).

    I can start apache, but when I type http://10.151.219.3/ in my browser I get a HTTP 404 Error (Not found).

    I looked at httpd.conf and DocumentRoot is /home/httpd/htdocs (like given in the install sequence). When I look in this directory all the nescessary files are there. But still I don't know why I'm getting this error. Even rebooting doesn't help.

    Does anybody know where to look?

    Thanx
    Bas

Similar Threads

  1. php5 and php4 module into apache 1.3x
    By marcbey in forum PHP Development
    Replies: 3
    Last Post: March 1st, 2004, 07:41 AM
  2. StartX
    By WWJD in forum Linux Help
    Replies: 4
    Last Post: October 23rd, 2003, 04:00 PM
  3. SQL - Table Problem
    By LouisRose in forum Database Management
    Replies: 0
    Last Post: July 14th, 2003, 07:40 AM
  4. devshed.com mainpage error
    By suffeks in forum Dev Shed Lounge
    Replies: 2
    Last Post: April 14th, 2003, 10:41 PM
  5. Trying to get PHP4 installed, module problems
    By ThinkGeekness in forum Apache Development
    Replies: 2
    Last Post: March 18th, 2003, 11:50 AM

IMN logo majestic logo threadwatch logo seochat tools logo