The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use Suexec with Apache2 ? kernings UNIX for Dummies Questions & Answers 1 03-10-2008 10:41 PM
install apache2 in bsd 6.2 tamayo BSD 2 12-04-2007 03:29 PM
apache2 ldap hassan1 SuSE 0 01-29-2006 01:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #15 (permalink)  
Old 04-29-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
You have really installed the APR/APRU header files (libaprutil1-dev and libapr1-dev)? They are not related to PHP, but Apache.

And, I think on Debian the apxs file is /usr/bin/apxs2. Are you sure you used the correct apxs?

You must have the package below installed, if you didn't compile install Apache yourself.

Debian -- Filelist of package apache2-prefork-dev/sid/i386
  #16 (permalink)  
Old 04-30-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 332
I tried installing the apache2-prefork-dev in Debian Etch. And it shows the following error.
Code:
apt-get install apache2-prefork-dev
....
The following packages have unmet dependencies:
  apache2-prefork-dev: Depends: libaprutil1-dev but it is not going to be installed
E: Broken packages
while trying to install that package,
Code:
apt-get install libaprutil1-dev
....
....
The following packages have unmet dependencies:
  libaprutil1-dev: Depends: libexpat1-dev but it is not going to be installed
                   Depends: libpcre3-dev but it is not going to be installed
                   Depends: libapr1-dev (>= 1.2.2-1) but it is not going to be installed
                   Depends: libsqlite3-dev but it is not going to be installed
                   Depends: libpq-dev but it is not going to be installed
                   Depends: libmysqlclient15-dev but it is not going to be installed
E: Broken packages
And it goes ... So what to do ?
  #17 (permalink)  
Old 04-30-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
It is your responsibility to find out why certain packages may not be installed on your system, as it may be due to conflicts with existing packages on your system that may prevent them from being installed.

The packages I mentioned are required if you need to compile anything related to Apache modules. You do not need them only if you are sure you have compiled and installed Apache from sources, and thus they are present although no binary package installed.

If you have such a broken system that would cost you a lot of time to fix to restore to working state, you may consider installing your self-compiled PHP as a CGI binary. That is not good in terms of performance (so refrain from doing so on a production machine), but you can be off the hassle associated with compiling Apache modules.

PHP: CGI and command line setups - Manual
  #18 (permalink)  
Old 04-30-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,522
I suggest you try to follow one of the guides to installing LAMP on Debian Etch, for example:


LAMP on Debian (Etch)


or

Install LAMP server in Debian, Ubuntu, and CentOS


or this older example:

The Perfect Setup - Debian Etch (Debian 4.0)


If you don't like those examples, you can Google for install lamp debian etch and find something that suits your requirements.
  #19 (permalink)  
Old 05-02-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 332
Thanks for all your time.

Thanks once again.
  #20 (permalink)  
Old 05-07-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 332
Finally, i upgraded my OS version from Debian Etch to Debian Lenny.

And installed php-5.2.9 from source, everything went fine. Following are the steps i followed,

1. Installed apxs2 by installing the package,
apt-get install apache2-prefork-dev

2. configure
./configure --with-apxs2=/usr/bin/apxs2

3. make & install
make
make install

It said simple errors in the fly, as packages missing and so. Solving it straight away made the php-5.2.9 available by both cli & in web front end.

Thanks for all who have helped in solving the issue.
Sponsored Links
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0