PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

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 Codewalkers Forums Sponsor:
  #1  
Old March 14th, 2003, 01:40 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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


Reply With Quote
  #2  
Old March 14th, 2003, 01:45 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Error 1 while installing PHP4

One more thing to note, I am on Red Hat 7.3.

Thanks again.

Reply With Quote
  #3  
Old March 14th, 2003, 03:05 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
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

Reply With Quote
  #4  
Old March 15th, 2003, 03:15 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Error 1 while installing PHP4

No, sorry, it didnt work.

Thanks for your help

Reply With Quote
  #5  
Old March 15th, 2003, 10:57 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
RE: Error 1 while installing PHP4

Are you doing a 'make' before the 'make install'

Reply With Quote
  #6  
Old March 15th, 2003, 08:55 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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?

Reply With Quote
  #7  
Old March 15th, 2003, 11:29 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
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.

Reply With Quote
  #8  
Old March 16th, 2003, 01:20 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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.

Reply With Quote
  #9  
Old March 16th, 2003, 01:59 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
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

Reply With Quote
  #10  
Old March 16th, 2003, 08:37 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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)

Reply With Quote
  #11  
Old March 16th, 2003, 08:40 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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.

Reply With Quote
  #12  
Old March 17th, 2003, 01:12 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
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.

Reply With Quote
  #13  
Old March 17th, 2003, 02:31 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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

Reply With Quote
  #14  
Old March 17th, 2003, 03:04 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
RE: Error 1 while installing PHP4

Give me a full copy and paste of everything including your errors

Reply With Quote
  #15  
Old March 17th, 2003, 03:06 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Error 1 while installing PHP4


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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek