Avatar billede fredand Forsker
02. oktober 2005 - 15:19 Der er 1 løsning

How to Install PHP 5 on apache 1.3?

Hello!

I have struggled all day trying to install:
1) Apache 1.3
2) PHP 5
...on to my Linux Mandrake 10.1

I manged to install Apache from a rpm (apache-1.3.33-6mdk.i586.rpm) but then it looks like I can not get it to work with PHP?? The only way to get it be able with PHP is to compile apache from source. I found this page that explaned it like:

http://se.php.net/manual/en/install.unix.php#install.unix.apache

Then I tried (after downloading the src) like

root@Stationary apache_1.3.33]# ./configure --prefix=/www --enable-module=so
Configuring for Apache, Version 1.3.33
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
+ using builtin Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
cd ..; gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci` -o helpers/dummy helpers/dummy.c -lm
============= End of Error Report =============

Aborting!

It looks like I do not have a ANSI C compiler, but when I looke for it I found this:

[root@Stationary apache_1.3.33]# rpm -q gcc
gcc-3.4.1-4mdk
[root@Stationary apache_1.3.33]#

So if you guys got any clue please let me know!

Best regards
Fredrik
Avatar billede fredand Forsker
02. oktober 2005 - 20:51 #1
Hello!
I found:
apache2-2.0.50-7mdk.i586.rpm
apache2-common-2.0.53-9mdk.i586.rpm
apache2-mod_php-2.0.50_4.3.8-2mdk.i586.rpm
apache2-modules-2.0.50-7mdk.i586.rpm
libapr0-0.9.5-11mdk.i586.rpm
libapr0-2.0.48-6mdk.i586.rpm
libapr-util0-0.9.5-8mdk.i586.rpm
libapr-util0-0.9.6-4mdk.i586.rpm
libldap2.2_7-2.2.23-5mdk.i586.rpm
libphp_common432-4.3.8-3mdk.i586.rpm
php-ini-4.3.10-3mdk.noarch.rpm
php-ini-4.3.8-1mdk.noarch.rpm

Looks like this solved my problem!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester