ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: From June-Sept/02 RedHat 7.3 on IBM Thinkpad 600 266MHz.
Posts: 15
Rep:
Installation Tutorial Apache 2, PHP 4, MySQL 3.23
Hello!
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.
Freddy
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
jens
Distribution: From June-Sept/02 RedHat 7.3 on IBM Thinkpad 600 266MHz.
Posts: 15
Original Poster
Rep:
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.