The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Application Loading problem mansoorulhaq SUN Solaris 7 10-23-2007 11:23 PM
Problem of Data Loading.... ankitgupta Shell Programming and Scripting 1 10-11-2006 07:08 AM
Problem Loading Linux Kyroq Linux 1 08-13-2005 07:37 AM
Red Hat loading problem ASpin UNIX Desktop for Dummies Questions & Answers 1 11-13-2002 03:19 AM
loading problem in XP help!!!!!!!!!!! amicrawler2000 Windows & DOS: Issues & Discussions 2 10-13-2002 02:28 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-07-2005
moxxx68's Avatar
Registered User
 

Join Date: Mar 2004
Posts: 301
Problem loading php.mod on apache 2.0

i am having a hard time loading the php4.module onto the apache 2.0 server that I am running.. i have tried to load it statically and through an install and stiill can't seem to connect to localhost through any of the ports that the manual suggested 80 8000 8080.. so far i have manged to load pgsl on the server and run the apache servers on these ports but I get an error message when I try to load the php module..
cannot load php.mod etc no such file or directory.. my original configuration worked fine but I could only access the apache web page through localdomain.. can this be configured under cgi-bin? and does it make a difference if I connect through localhost or localdomain?
any suggestions welcome..
moxxx68
__________________
moxxx68
http://www.estarinformado.com.ar/apicmaxmiel/bee-diez.gif
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-07-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,422
Compile PHP as a shared object module, and if the configure detects the Apache installation, it will automatically place a

LoadModule php4_module modules/libphp4.so

in the httpd.conf. Make sure you have this libphp4.so together with the other Apache modules (usually modules/). Adjust the path if wrong. I think this is done by the PHP install already. If not, find it out in your PHP build tree and manually copy it to there.

The only thing that I only need to add to the configuration is

AddType application/x-httpd-php .php

and everything works already.

I have a few PHP4+Apache2 installations which go pretty smoothly.
Reply With Quote
  #3 (permalink)  
Old 01-07-2005
moxxx68's Avatar
Registered User
 

Join Date: Mar 2004
Posts: 301
this looks like it will work but I have a few questions before I go and try it.. when I tried to load libphp4.mod in the httpd.conf file the error message indicated that it couldn't find any such package.. where would I find the package if i need to i can't seem to locate it..?! also in the php directory its all pear php is this what I am look for? lastly with the AddType config would I have to go through the whole install of php again..? if I do.. how would I enable it as a shared object module.. i kno
all these questions sound crazy!? but I am CONFUSED.
...
moxxx68.
ps.. thanx for the quick reply
__________________
moxxx68
http://www.estarinformado.com.ar/apicmaxmiel/bee-diez.gif
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0