| How to Build a Web Server with PHP 5 and MySQL 5 Support |
|
|
| $ Check REAL-TIME pricing for Linksys WRT54GS Wireless Router $ |
|
|
|
|
|
|
|
| Configuring and Installing Apache 2 |
The first step is to download, configure and install Apache 2, which is the web server software. This is the easiest part of our tutorial. Download the latest version from http://httpd.apache.org/download.cgi. Choose the mirror nearest to the server you are building. You have an option to choose between 2.2.x series and 2.0.x series, this is up to you. The version you need to download is the “unix source”. Then on command line type something like this, depending on the link you got on this webpage:
cd /root wget http://www.apache.org/dist/httpd/httpd-2.0.59.tar.gz tar -xvzf httpd-2.0.59.tar.gz cd httpd-2.0.59 ./configure --prefix=/usr/local/apache2 --enable-deflate --enable-ssl --enable-suexec --with-suexec-caller=apache --with-suexec-docroot=/ --with-suexec-datadir=/www/ --enable-mods-shared=most make make install
Of course you may add another configuration parameters you may need for your particular installation. The trick is to make sure to use --enable-deflated to install mod_deflate, which is a plug-in for Apache that enables HTML compression, making your web server to present webpages faster and also to save bandwidth.
Also notice where we installed Apache: /usr/local/apache2
Edit /etc/profile and add :/usr/local/apache2 at the end of the PATH statement.
You will also need to edit /usr/local/apache2/conf/httpd.conf to configure your webserver. This configuration procedure, however, isn’t the scope of the present tutorial.
That’s it. Now we need to install and configure MySQL 5. Like we said, this must be done before configuring and installing PHP 5. |
| Pages (5): « 1 [2] 3 4 5 » |
| Print Version | Send to Friend |
|
Bookmark Article
| Comments (7)
|
|
| Recommended Deals |  | Linksys WRT300N Wireless Router
|  | Linksys WRT350N Wireless Router
|  | Linksys WRT54GS Wireless Router
|  | D-link Xtreme N™ DIR-655 Wireless Router
|  | Linksys WRT54GL Wireless Router
|
|
Latest News |
November 20, 2008 - 4:47 PM PST |
November 19, 2008 - 6:17 PM PST |
November 18, 2008 - 6:43 PM PST |
November 18, 2008 - 6:11 PM PST |
November 18, 2008 - 6:02 PM PST |
November 17, 2008 - 6:50 PM PST |
November 14, 2008 - 4:34 PM PST |
November 12, 2008 - 11:37 AM PST |
November 11, 2008 - 4:04 AM PST |
November 10, 2008 - 4:22 PM PST |
| .:: More News ::. |
|
Latest Content |
|
|
| Our Most Popular Articles |
822,384 views
|
512,478 views
|
451,303 views
|
432,938 views
|
428,910 views
|
422,438 views
|
384,223 views
|
368,687 views
|
289,596 views
|
281,979 views
|
|
| Latest Threads in Our Forums |
by Olle P |
by Olle P |
by zargon48 |
by zargon48 |
by Gabriel Torres |
by Hardware Secrets Team |
by Wromx |
by Hardware Secrets Team |
by joseph |
by Hardware Secrets Team |
| .:: Visit Our Forums ::. |
|
|