Installing PHP

Apache, Lighttpd, nginx, Cherokee
Post Reply
gnome_x
Posts: 13
Joined: 2002-07-15 04:50
Location: Bonn/Köln
 

Installing PHP

Post by gnome_x »

Hi,

I have an old site writen in PHP3 which uses session_register, which was disabled from php 4.0.6.

I'm looking for someone who could help me install a version previous to php 4.0.6 on a 1&1 rootserver Start with Suse 8.1. I would be happy installing PHP3, PHP 4.0.5, 4.0.4 or 4.0.3. Which one you think it's best.

I have tried several times to compile it myself following instructions on the PHP documentation but I get compilation errors, when I do "MAKE".

I did uninstall PHP 4.2.2 that was installed by default on the server, with yast. So the server doesn't have any versions of php installed at all.

Thanks in advance,

gnome_x

P.S. Please feel free to answer in German Language.
arty
Userprojekt
Userprojekt
Posts: 729
Joined: 2002-06-12 10:11
Contact:
 

Re: Installing PHP

Post by arty »

Hi,

it would be better, to port your script from PHP3 code to PHP4 code, which works with PHP 4.3.2.

bye
arty
gnome_x
Posts: 13
Joined: 2002-07-15 04:50
Location: Bonn/Köln
 

Re: Installing PHP

Post by gnome_x »

Thanx for the tip!

I'm already doing that, bit it takes it's time.
I need this as a temporary solution, until I'm done with porting, so the site will not be down during all the time. My client is getting very impatient, so I had to go for this temporary solution.

I would be very glad to share the porting work(and the money) with someone. If you are interested, please let me know.

Best Regards,

gnome_x
gnome_xg aat yahoo doot com
arty
Userprojekt
Userprojekt
Posts: 729
Joined: 2002-06-12 10:11
Contact:
 

Re: Installing PHP

Post by arty »

Hi,

sorry, but I've got too little time to spent for porting software. Porting PHP3 code to PHP4 ist quite easy.

bye
arty
gnome_x
Posts: 13
Joined: 2002-07-15 04:50
Location: Bonn/Köln
 

Re: Installing PHP

Post by gnome_x »

I'm trying to install php3 and php4 as concurrently runing modules in apache. Installed I have already php4.2.2, and it's working fine. My server is a 1&1 start, with suse 8.1

When I configure php3 the very last rows I get are:

Code: Select all

./configure --with-apxs=/usr/sbin/apxs --enable-versioning --with-mysql --enable-track-vars

Code: Select all

checking whether to enable DBA interface... no
checking for mcrypt support... no
checking for mhash support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include POSIX support... yes
checking whether to include GNU recode support... no
checking whether to enable dmalloc support... no
checking for __dn_skipname in -lbind... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating build-defs.h
creating stamp-h
creating libphp3.module
creating extra/gd/bdf2gdfont
creating regex/Makefile
creating pcrelib/Makefile
creating dbase/Makefile
creating config.h
config.h is unchanged
Than when I make install I get the following error:

Code: Select all

# make install
gcc -g -O2 -O2 -march=i586 -mcpu=i686 -fmessage-length=0  -DEAPI_MM -fPIC -D_LARGE
FILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT
=128 -DSSL_EXPERIMENTAL_PERDIRCA_IGNORE -DSSL_EXPERIMENTAL_PROXY_IGNORE -DLINUX=22
 -DMOD_SSL=208110 -DEAPI -O2 -fPIC -DSHARED_MODULE  -I. -I.   -I/usr/include/apach
e                  -I/usr/include/mysql    -c language-parser.tab.c -o language-pa
rser.tab.o
In file included from language-parser.y:52:
php.h:195:28: ap_config_auto.h: No such file or directory
php.h:199:23: ap_config.h: No such file or directory
php.h:209:23: ap_compat.h: No such file or directory
php.h:211:19: httpd.h: No such file or directory
php.h:212:23: http_main.h: No such file or directory
php.h:213:23: http_core.h: No such file or directory
php.h:214:26: http_request.h: No such file or directory
php.h:215:27: http_protocol.h: No such file or directory
php.h:216:25: http_config.h: No such file or directory
php.h:217:22: http_log.h: No such file or directory
In file included from language-parser.y:52:
php.h:220: parse error before '*' token
php.h:220: warning: data definition has no type or storage class
make: *** [language-parser.tab.o] Error 1
Does anyone know what this depend on, and how I could fix this?

Thanx in forward

gnome_x
Post Reply