|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error 1 while installing PHP4
I am trying to install PHP-4.3.1.tar.gz and I followed the instruction guide that came with it but I am getting an error message. Here is what I have done:
#./configure PHP4 configures #make install PHP4 installs, up until I get to: Installing PHP SAPI module cp: cannot stat 'sapt/cgi/php': No such file or directory make: *** [install-sapi] Error 1 And then it quits. I have been/want to install PHP dynamically. Is it asking me to create that folder? Or do I need that directory in order to install? Thanks |
|
#2
|
|||
|
|||
|
RE: Error 1 while installing PHP4
One more thing to note, I am on Red Hat 7.3.
Thanks again. |
|
#3
|
|||
|
|||
|
RE: Error 1 while installing PHP4
I have never had this error before but try this
First do a 'rm config.cache' this will get rid the compile log then do a 'make clean' Let me know if this works if not i'll look further |
|
#4
|
|||
|
|||
|
RE: Error 1 while installing PHP4
No, sorry, it didnt work.
Thanks for your help |
|
#5
|
|||
|
|||
|
RE: Error 1 while installing PHP4
Are you doing a 'make' before the 'make install'
|
|
#6
|
|||
|
|||
|
RE: Error 1 while installing PHP4
Yes, i did do "make". After I tried to reinstall it, it worked. But now I have encountered another problem. Shouldnt php automatically add the modules to apache? because it didnt and I couldnt find a .c module. I also found the .so module but apache said that it couldnt find it. maybe it really isnt installed?
|
|
#7
|
|||
|
|||
|
RE: Error 1 while installing PHP4
You will have to go into your httpd.conf file remove the #'s in front of the modules you installed then restart apache.
|
|
#8
|
|||
|
|||
|
RE: Error 1 while installing PHP4
But it doesnt even show a php module in there at all. I searched for "php" and I didnt get anything.
|
|
#9
|
|||
|
|||
|
RE: Error 1 while installing PHP4
Try adding the following
Code:
LoadModule php4_module modules/libphp4.so AddModule mod_php4.c <IfModule mod_php4.c> AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps |
|
#10
|
|||
|
|||
|
RE: Error 1 while installing PHP4
Okay, it still isnt working. I have Apache 1.3.26, can PHP 4.3.1 work with it? (I am hoping this isnt the problem)
|
|
#11
|
|||
|
|||
|
RE: Error 1 while installing PHP4
Also (just to make sure I am doing everything 100% correct) the steps that I take to install are:
# cd php4.x.x # ./configure # make # make install Is that correct? I would then add the php stuff to the httpd.conf file, right? Thanks for your help. |
|
#12
|
|||
|
|||
|
RE: Error 1 while installing PHP4
I am thinking you should not have to recompile apache with PHP. When you installed 7.3 php should have been compiled with it by default. Was php never compiled during install. Also you should consider registering here at codewalkers you can set preferences to email you when someone replys to your posts.
|
|
#13
|
|||
|
|||
|
RE: Error 1 while installing PHP4
I will register, once I can get this little problem solved. I think that I have gotten somewhere, but I found another problem. I do not have apache apxs installed. I dont know how I managed to accomplish that task, but I did. I was doing a ./configure --with-apxs=/usr/local/apache/bin/apxs but I dont have the directory. So how would I get the apxs?
Thanks |
|
#14
|
|||
|
|||
|
RE: Error 1 while installing PHP4
Give me a full copy and paste of everything including your errors
|
|
#15
|
|||
|
|||
|
RE: Error 1 while installing PHP4
Okay, nevermind, I have the apxs folder (i thought that it would be /apache/apxs, but i was wrong), only I am getting the following error message when I tried to install php:
My apxs are located in /usr/local/apache/bin/apxs ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql I get the following message: Checking for Apache 1.x module support via DSO through APXS... Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support 3. 'apxs' is not your path. I have all three of those requirements meant, what should I do? Thanks |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Error 1 while installing PHP4 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|