| How to Build a Web Server with PHP 5 and MySQL 5 Support |
|
|
Real-time pricing for Sony SMP-N100 |
| Sony SMP-N100 Streaming Player with Wi-Fi SMPN100 Electronics Usually ships in 24 hours |
|
|
|
|
|
| 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.
|
| « Previous | Page 2 of 5 | Next » |
| Print Version | Send to Friend |
Bookmark Article
| Comments (7)
|
|
|
|
Recommended Deal |
 | ASUS 610839056583
ASUS RT-N16 Wireless-N 300 Maximum Performance single band Gaming Router Fast Gigabit Ethernet support USB-Hard Drive and Printer Open source DDWRT Asus AS-6962RTN16 Electronics
|
|
 Latest News
February 10, 2012 - 8:20 AM PST
February 9, 2012 - 8:06 AM PST
February 8, 2012 - 7:50 AM PST
February 7, 2012 - 8:31 AM PST
February 6, 2012 - 7:40 AM PST
February 3, 2012 - 8:19 AM PST
February 2, 2012 - 8:42 AM PST
February 2, 2012 - 8:41 AM PST
February 1, 2012 - 4:50 PM PST
February 1, 2012 - 7:55 AM PST
 Latest Content
Our Most Popular Articles
1,612,878 views
1,413,967 views
1,157,908 views
1,117,152 views
1,043,673 views
943,721 views
741,862 views
669,271 views
652,474 views
622,843 views
Latest Threads in Our Forums
by c.hegge
by RayBay
by RayBay
by WreakingHavoc
by dlb
by loonicy
by Hardware Secrets Team
by Gabriel Torres
by Hardware Secrets Team
by Gabriel Torres
|