Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-01-2002, 11:08 AM   #1
LQ Newbie
Registered: May 2002
Location: La Baule, France
Distribution: From June-Sept/02 RedHat 7.3 on IBM Thinkpad 600 266MHz.
Posts: 15

Rep: Reputation: 0
Unhappy Installation Tutorial Apache 2, PHP 4, MySQL 3.23

I'm havin' a very hard time installing Apache 2, and PHP 4. Somehow I have installed MySQL and it seems to work (step 1 in an old tutprial, something in the newer versions of Apache and PHP seem to have changed, like PHP 4 does not take the "--with-apache=XXX" switch any longer.
In that tutorial as step 2 there is a first installation phase for Apache, then PHP, and then the 2nd phase for Apache.
Please some help! Thanks in advance.
Old 07-03-2002, 08:04 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i donīt know exactly whatīs your problem. i would install mysql first then apache then php. but you need read the INSTALL that comes with the download. apache must be configured --with-shared=`max`or similar flag to enable the use of third party modules. ./configure --help will show you the most important options. you should configure php --with-apxs=/path/apache/bin/apxs and with mysql.
good luck, maybe someonelse knows better
Old 07-03-2002, 10:40 AM   #3
LQ Newbie
Registered: May 2002
Location: La Baule, France
Distribution: From June-Sept/02 RedHat 7.3 on IBM Thinkpad 600 266MHz.
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks j-ray,
As a wrap up of what I've done:

1.- Installed 'MySQL-3.23xxx' normal and 'MySQL-client-3.23xx' otherwise some problems with 'mysqladmin' and passwords. Installed in that order.

2.- Installed Apache 2.0.39. I did read the installation instructions but not all is there. So, I fusioned all the help I got for Apache and PHP from the forums, and configured Apache as follows in one line:
./configure --enable-so --enable-rewrite --enable-module=most --enable-shared=max
Then 'make', then 'make install'. Apache by default installs itself at /usr/local/apache2. Then 'make clean' to free up memory.
Then at the apache default directory, I edited the file ./conf/httpd.conf and changed the 'Servername' to 'localhost'. The DocumentRoot directive I left untouch (directory where your web pages are gonna be executed: './htdocs').

3.-Installed PHP4.2.2 (previous versions with installation bugs!). I used the following command to configure PHP, in one line:
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
Pay attention to the second flag of the configuration command!
Then I edited once more the ./conf/httpd.conf file from apache's default directory, as follows:
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

All tests seem to work, so I'll start developing. Thanks to all!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP-Mysql Tutorial for beginner/dummies ewinandar Programming 1 11-10-2004 03:10 AM
Integrating PHP and MySQL Into Apache From Full Installation tsuehpsyde Fedora 11 05-05-2004 03:15 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
Apache PHP MySQL Setup after Slackware 9.0 Installation initself Slackware 37 12-20-2003 07:48 AM
Order of installation Apache, Mysql, PHP,SSH piratebiter Linux - Newbie 3 08-16-2003 03:13 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration