LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2003, 05:38 PM   #1
Thinkgeekness
Member
 
Registered: Nov 2002
Posts: 81

Rep: Reputation: 15
Trouble installing PHP4 on RHL


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
 
Old 03-14-2003, 02:53 AM   #2
Zerodark
Member
 
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Rep: Reputation: 30
i had this problem also,...i didn't end up making the folder,..but one of my friends told me not to do a 'make install' until after i did the 'make' and it worked out just fine after that.
 
Old 03-16-2003, 09:56 PM   #3
Thinkgeekness
Member
 
Registered: Nov 2002
Posts: 81

Original Poster
Rep: Reputation: 15
Well, I have gotten a bit further, I dont have the error message anymore. It still isnt installed, I dont have apxs installed. I dont know why. I have Apache 1.3.27. Is there a way to install apxs?

Thanks
 
Old 03-16-2003, 10:05 PM   #4
Thinkgeekness
Member
 
Registered: Nov 2002
Posts: 81

Original Poster
Rep: Reputation: 15
Okay, nevermind, I have the apxs folder, only I am getting the following error message when I tried to install php4:

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
 
Old 03-16-2003, 10:59 PM   #5
Thinkgeekness
Member
 
Registered: Nov 2002
Posts: 81

Original Poster
Rep: Reputation: 15
I have been getting further, here is how I stand, any help will be appreciated. I installed apache by ./install-bindist.sh. I then installed it regular with ./configre --enable-module=so. I want to keep it installed with bindist.sh because it loads all of the modules automatically. Is there a way I can add --enable-module=so to bindish.so or anyway to add it while it is installed?

Thanks again.
 
Old 03-19-2003, 01:17 PM   #6
TimeSaver
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
All of you guys first gotta decide if you have Apache 1.x or 2.x this will determine if you want to use the switch apxs=.... or apxs2=...

Now once you have determined that do following.

1. Run the configure script

$ ./configure --with-apxs2=[path to your apache/bin/apxs folder]

2. Run make (this is must since now u want to compile and make your binaries)

$make

3. Now you want to install em

$make install

This should do it.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing jre on RHL 6.2 ceenu99 Linux - Software 1 08-29-2005 01:01 AM
Problem installing FC 2/RHL 9 som Linux - Hardware 2 01-23-2005 02:03 AM
Trouble installing Apache, Openssl, Modssl, php4, imap, and aeromail. Abs2004 Linux - Software 3 11-01-2004 12:26 PM
Installing X Window On RHL varky Linux - Newbie 1 05-23-2004 01:23 PM
installing RHL 7.1 virtualking Linux - Software 3 01-18-2003 02:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration