apache2 & two php versions, how to use specific version


 
Thread Tools Search this Thread
Top Forums Web Development apache2 & two php versions, how to use specific version
# 15  
Old 04-29-2009
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  
Old 04-30-2009
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  
Old 04-30-2009
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  
Old 04-30-2009
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  
Old 05-02-2009
Thanks for all your time.

Thanks once again.
# 20  
Old 05-07-2009
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

php showing 2 versions

Fedora core 5 upgraded PHP php -v PHP 5.3.8 (cli) (built: Sep 30 2011 05:55:57) Copyright (c) 1997-2011 The PHP Group but if I also created a <?php phpinfo() ?> doc and it reports as 5.1.6 still something missing somewhere? (1 Reply)
Discussion started by: ippy98
1 Replies

2. Solaris

Please Help me about php&apache2 onSol10

Ok. I'm have Apache2 build on Solaris10 release 10/9 and I installed Mysql that could work. but I install php5 by pkgadd this packet install in /usr/local/php and i edit httpd.conf Insert "LoadModule php5_module libexec/libphp5.so" after edited httpd.conf so i restart httpd by... (1 Reply)
Discussion started by: infjustice
1 Replies

3. Programming

pythonqt scriptint & orting to lower version

I am facing some problems in deploying my application for lower version of qt. Basically i want to generate scripts for my application and I have chosen pythonqt for this purpose. Pythonqt has the problem with lower version of Qt (Qt 4.5.2) and also with Higher version of Qt (Qt 4.7). So I... (1 Reply)
Discussion started by: sujandasmahapat
1 Replies

4. AIX

Does anyone know the version of make on AIX 5.1 & 5.3?

Could you tell me the version of default make on AIX 5.1 & 5.3? (2 Replies)
Discussion started by: redraiment
2 Replies

5. UNIX for Dummies Questions & Answers

How to compare 2 files & get specific value & replace it in other file.

Hiiii Friends I have 2 files with huge data. I want to compare this 2 files & if they hav same set of vales in specific rows & columns i need to get that value from one file & replace it in other. For example: I have few set data of both files here: a.dat: PDE-W 2009 12 16 5 29 11.11 ... (10 Replies)
Discussion started by: reva
10 Replies

6. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

7. SCO

SCO & Informix SE version 7

hi, I need to download Informix SE version 7 for SCO but i could'nt find the link. please if someone can send me the link. thinks. (1 Reply)
Discussion started by: whisper
1 Replies

8. Shell Programming and Scripting

Awk: Version && nextfile

How can I find which version of Awk is installed? OpSystem is HPUX 11.x I am getting an error when trying to use the keyword nextfile and I dont know why! (Well, I can only assume that I have am using a version of Awk that does not support nextfile. However, according to O'Reilly, nextfile is... (3 Replies)
Discussion started by: google
3 Replies

9. UNIX for Dummies Questions & Answers

What is the difference : SunOS & Solaris Version.

Sorry I think someone already pointed out this but I couldn't find it. Please tell me what is the difference between SunOS Version and Solaris Version. What is the purpose of maintaining these two things ? Thanks (2 Replies)
Discussion started by: champion
2 Replies
Login or Register to Ask a Question