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
