faqts : Computers : Programming : Languages : PHP : Installation and Setup : PHP4

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 25 people (68%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

how do i install php4 on Mandrake Linux 7.1 with MySQL (RPM) Apache (RPM)

Sep 11th, 2000 10:09
Narendra Jain, Darius Upshaw, brenton furniss, http://www.linuxguruz.org/z.php?id=31


Randall Goguen has provided an excellent installation procedure for this
requirement. I did it on my system and it worked in a single hit - no
retries!!
Please follow the abouve link to www.linuxguruz.org
____________________________________________________________
Do you already have MySQL installed (if not see below)
I am currently working on this myself.  First, the MySQL 3.22.32 (rpm) 
is quick and easy..  Install the rpms (client and server) (make sure you 
are logged in as root..) use this command
rpm -i MySQL-%version%.i386.rpm MySQL-client-%version%.i386.rpm
Now to install php4, you can (assuming unzipped to directory, and you 
are at the folder with the configure program)
here is a brief exerpt from the INSTALL file (also in the unzipped 
directory.)
"QUICK INSTALL (DSO)
For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.  You should see something like:
Compiled-in modules:
  http_core.c
  mod_so.c
Chances are you will see a lot more modules than these two. That's ok, 
as long as mod_so.c shows up you can proceed with the following steps:
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apxs
$ make
$ make install
If you get an error telling you that the apxs script could not be found,
look for it on your system and if you find it, provide the full path to 
it
as: --with-apxs=/path/to/apxs
The only thing left to do is to edit your httpd.conf file and make sure 
the
PHP 4 mime type is there and uncommented.  You need a line that looks 
like
this:
   AddType application/x-httpd-php .php
Then restart your server (apachectl restart) and you should be able to
serve up PHP files now.  Make a test file called test.php and put some 
PHP tags in it.  Like <?phpinfo()?>, for example."
FROM INSTALL file
let me know if this helps or if you have any further problems and ill 
see what i can do.  (also versions and errors are very helpful).