PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 31st, 2000, 10:18 AM
MeijdenB MeijdenB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Alkmaar, The Netherlands
Posts: 123 MeijdenB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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

Reply With Quote
  #2  
Old May 31st, 2000, 11:03 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>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.

Reply With Quote
  #3  
Old May 31st, 2000, 01:33 PM
MeijdenB MeijdenB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Alkmaar, The Netherlands
Posts: 123 MeijdenB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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

Reply With Quote
  #4  
Old May 31st, 2000, 05:48 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #5  
Old June 2nd, 2000, 04:09 AM
MeijdenB MeijdenB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Alkmaar, The Netherlands
Posts: 123 MeijdenB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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).]

Reply With Quote
  #6  
Old June 2nd, 2000, 07:23 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Okay. Let's start it over. Please go to: http://www.devshed.com/Talk/Forums/Forum15/HTML/000020.html

Reply With Quote
  #7  
Old June 2nd, 2000, 09:08 AM
MeijdenB MeijdenB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Alkmaar, The Netherlands
Posts: 123 MeijdenB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP4 module for Apache

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap