Click to See Complete Forum and Search --> : Apache, PHP, and SQL. -- Help a Linux Virgin :)


GK
03-21-2002, 11:13 PM
I'd like to build my own webserver since I'm sick of paying hosts for craptacluar service.

I consider myself to be a Linux novice and know the basics to install, setup, and get around my RedHat 7.2 machine.

My Windows(yaya, :p) instructor and I would like to setup a RedHat 7.2 web server that runs Apache, SQL, and PHP.

I've searched all over the web and haven't been able to find a decent source of information.

I registered on this board a few months back and was never able to get on because of the mail server issues. I never received my password. :(

Anyway, is there a good source you recommend for super newbie's like myself? Yes I've been reading and searching, so more resources would be terrific.

Thanks a bunch guys and I'm looking forward to learning from everybody here. :)

maxl
03-21-2002, 11:35 PM
1. gunzip apache_xxx.tar.gz
2. tar -xvf apache_xxx.tar
3. gunzip php-xxx.tar.gz
4. tar -xvf php-xxx.tar
5. cd apache_xxx
6. ./configure --prefix=/www --enable-module=so
7. make
8. make install
9. cd ../php-xxx
10. ./configure --with-mysql --with-apxs=/www/bin/apxs
11. make
12. make install

If you decide to change your configure options after installation
you only need to repeat the last three steps. You only need to
restart apache for the new module to take effect. A recompile of
Apache is not needed.

11. cp php.ini-dist /usr/local/lib/php.ini

You can edit your .ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 8.

12. Edit your httpd.conf or srm.conf file and check that these lines are
present and not commented out:

AddType application/x-httpd-php .php

LoadModule php4_module libexec/libphp4.so

You can choose any extension you wish here. .php is simply the one
we suggest. You can even include .html, and .php3 can be added for
backwards compatibility.

The path on the right hand side of the LoadModule statement must point
to the path of the PHP module on your system. The above statement is
correct for the steps shown above.


13. Use your normal procedure for starting the Apache server. (You must
stop and restart the server, not just cause the server to reload by
use a HUP or USR1 signal.)



Taken directly from PHP's site.
url = http://www.php.net/manual/en/install.apache.php

GK
03-22-2002, 02:54 AM
Yeah I've seen that, but I was looking for a different source of information. I was hoping to see screenshots and whatnot. :)

jcrowe
03-22-2002, 10:02 AM
Check out the Apache Toolbox (http://www.apachetoolbox.com/). There aren't any screanshots but it makes it easy to compile apache/php with the options you want.

jcrowe