Problem loading php.mod on apache 2.0


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problem loading php.mod on apache 2.0
# 1  
Old 01-07-2005
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
# 2  
Old 01-07-2005
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.
# 3  
Old 01-07-2005
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

2. Shell Programming and Scripting

[Ubuntu / PERL ]Problem installing WWW::Mechanize mod

Hello everyone, I've got some problem intalling a perl module. The installation is well done as you can see below. gueg@ux31:~$ sudo apt-get install libwww-mechanize-perl Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état...... (4 Replies)
Discussion started by: tot94
4 Replies

3. UNIX for Dummies Questions & Answers

Apache's strange loading of .gif and .jpg images

Hello! I have got next issue: my website is not showing up .gif and .jpg images, but by the direct links (ex. http://somedomain.com/img/logo.gif) i can view them without any problem. Also if any image is clicked from http://somedomain.com/img/ URL , i get error: Forbidden You don't have... (2 Replies)
Discussion started by: v1xon
2 Replies

4. Web Development

Apache mod status buggy?

My problem is whenever I run mod status to capture the amount of byte count served I am getting 100+ gig of byte count! in 10 minutes! But when I try to filter the apache log and count the byte count served in the same time stamp within 12 hours, it computes to less than 103 MB only Just an... (0 Replies)
Discussion started by: 3rr0r_3rr0r
0 Replies

5. UNIX for Advanced & Expert Users

OpenBoot Loading Problem

I am using a SunBlade 100 system and accidently set a new alias for keyboard, now when it start it gives the following error, The selected input device has no read routine. Keyboard not present using ttya for input and output. Now i cannot execute any commands on the OBP and i just gets... (3 Replies)
Discussion started by: sumwhriblong
3 Replies

6. Linux

Problem in loading library

I am trying to run seagull tool. But when i start it following error shown |E|Unable to open library file error |A|STOP log Please help me how i can recover from it. (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

7. Solaris

Application Loading problem

I install a software xchm for opening chm files. I install software and also its required libraries. But when i start it; no GUI appears. Application got halt. Process name also appears in process list when i run top command. Appliation continously using cpu but no GUI appears. Please tell me... (7 Replies)
Discussion started by: mansoorulhaq
7 Replies

8. Linux

Problem Loading Linux

I have Linux on an image in my cd-rom drive. I have previously loaded Windows XP but couldnt use it because I had already installed it on another PC - so I want to remove this and load Linux. I am fairly PC illiterate when it come to dos-commands and such... HELP!!! (1 Reply)
Discussion started by: Kyroq
1 Replies

9. Windows & DOS: Issues & Discussions

loading problem in XP help!!!!!!!!!!!

have a azuse mother borad 1600Mhz ram 512 hd 40gb will not install windows want to finish but will not take it! Is this a hard ware problem or a virus i use av norton 2002 and nod32 think got a virus not shure xp will not load any more (2 Replies)
Discussion started by: amicrawler2000
2 Replies
Login or Register to Ask a Question