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
# 8  
Old 04-27-2009
It appears like it cannot find the apr/apr-utils header files. Please try to verify if the needed header packages have been installed.
# 9  
Old 04-28-2009
Mabye you could try to install apache2 on debian etch using:

Code:
#apt-get install apache2

Then, install PHP5 support for apache2 on debian etch using:

Code:
#apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi

# 10  
Old 04-28-2009
I installed all the above packages as mentioned.

I extracted fresh source. And i still get the same error !

Code:
/bin/sh /root/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.2.9/meta_ccld  -DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/apache-1.3   -Isapi/apache2handler/ -I/root/php-5.2.9/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/php-5.2.9/include -I/root/php-5.2.9/main -I/root/php-5.2.9 -I/usr/include/libxml2 -I/root/php-5.2.9/ext/date/lib -I/root/php-5.2.9/TSRM -I/root/php-5.2.9/Zend  -D_REENTRANT  -I/usr/include -g -O2 -pthread -DZTS  -prefer-non-pic -c /root/php-5.2.9/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mod_php5.lo
In file included from /root/php-5.2.9/sapi/apache2handler/mod_php5.c:26:
/root/php-5.2.9/sapi/apache2handler/php_apache.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'php5_module'
/root/php-5.2.9/sapi/apache2handler/php_apache.h:38: error: expected specifier-qualifier-list before 'apr_bucket_brigade'
/root/php-5.2.9/sapi/apache2handler/php_apache.h:51: error: expected ')' before '*' token
/root/php-5.2.9/sapi/apache2handler/php_apache.h:52: error: expected ')' before '*' token
/root/php-5.2.9/sapi/apache2handler/php_apache.h:56: error: expected ')' before '*' token
/root/php-5.2.9/sapi/apache2handler/mod_php5.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'module'
make: *** [sapi/apache2handler/mod_php5.lo] Error 1

Is there any other way to install php-5.2.9 in Debian Etch ?
# 11  
Old 04-28-2009
Did you deinstall all prior versions before installing? It sounds like you might have a PATH conflict or similar problem.

Can you post your environmental variables?
# 12  
Old 04-29-2009
1. I uninstalled, and installed the php related packages. But there is no improvement, the same error occurs again.

2. following is the environment variables..
Code:
BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="1" [2]="17" [3]="1" [4]="release" [5]="i486-pc-linux-gnu")
BASH_VERSION='3.1.17(1)-release'
COLUMNS=141
DIRSTACK=()
EDITOR=vim
EUID=0
FCEDIT=vim
GROUPS=()
HISTFILE=/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=Debian-Server
HOSTTYPE=i486
IFS=$' \t\n'
LANG=en_IN
LINES=41
LOGNAME=root
LS_OPTIONS=--color=auto
MACHTYPE=i486-pc-linux-gnu
MAIL=/var/mail/root
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/bin/festival:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/lib/eclipse
PIPESTATUS=([0]="0" [1]="0")
PPID=429
PS1='\h:\w\$ '
PS2='> '
PS4='+ '
PWD=/root
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:histexpand:interactive-comments:monitor:vi
SHLVL=1
SSH_CLIENT='192.168.6.56 49231 22'
SSH_CONNECTION='192.168.6.56 49231 192.168.1.155 22'
SSH_TTY=/dev/pts/1
TERM=xterm
UID=0
USER=root

# 13  
Old 04-29-2009
If you install with apt-get you don't need to configure/make because you are installing the binaries.

Isn't that right?
# 14  
Old 04-29-2009
Quote:
Originally Posted by Neo
If you install with apt-get you don't need to configure/make because you are installing the binaries.

Isn't that right?
He probably wants to install the latest version. Debian's version is a bit old, though I think not too dated as to be intolerable.

If you dare to use Debian unstable (like I do on my desktop), you will get PHP 5.2.9 instead of 5.2.6 (with Debian Stable - Lenny) or 5.2.0 (Debian Stable - Etch). Then you will not only have bleeding edge PHP, you will always have the very latest version of essentially each and every package on your system if you upgrade often enough.

Managing a Debian Unstable system is tedious, though. Be forewarned.
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