WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Installing Apache Web Server and PHP 4 on Linux
Categories : PHP, Web Browsers, Apache, Linux
phpfreaks.com
phpfreaks.com
Date : 2003-08-11
Grade : 0 of 5 (graded 0 times)
Viewed : 7444
Search : More Articles by phpfreaks.com
Action : Grade This Article
Tools : My Favotite Articles


  Submit your own code examples 
 


When you are ready to setup a web server, you need something reliable. You need something with power. You'll also need something that is hard to hack. The Apache Foundation has a great free web server package that is known and used worldwide as the number one solution for web hosting. This tutorial will show you how to setup an Apache + PHP web server that will solve all of your problems.

This is a Linux tutorial. A Windows tutorial may come soon.

Step 1. Obtaining the Source Packages

I always recommend that you compile via source package (tarballs). The reason being is that you have control over what goes into your installation. It's more of the "Advanced" installation where you get to select installation options. Here's some addresses of the sites. I will not post specific files here because they may be updated by the time you read this tutorial:

Make a directory on your linux box called something like "/usr/local/src/webserver" Download these files to here. You may do this via SSH and CD to that directory and type "wget the_url_here" for the respective files.

Apache Web Server - http://www.apache.org/dyn/closer.cgi/httpd/
Look for the Apache 1.3.2x series. At the time of writing this tutorial, Apache 2 and PHP are not working properly unless you do some massive testing with CVS code, but that's not recommened!

PHP - http://www.php.net/downloads.php
Look for the 4.2.x series under Complete Source Code.



Step 2. Unpacking the Source Packages

Go to the source directory and type:

tar zxvf apache_1.xxxxx.tar.gz
tar zxvf php_4.xxx.tar.gz

Read More...









Apache, PHP, and PostgreSQL on RedHat Linux
Categories : Apache, PHP, Databases, PostgreSQL, Linux
Setup and Install Apache with PHP4 as a Dynamic Module (DSO)
Categories : PHP, PHP Configuration, Apache
Setup and Install Apache and PHP4 on Windows
Categories : PHP, PHP Configuration, Apache, Windows 2000
User Authentication With Apache and PHP
Categories : PHP, Web Servers, Apache, Authentication
How TO Install PHP, Apache and MySQL on Linux or Unix
Categories : PHP, MySQL, Apache, Installation, Beginner Guides
Generating One-Time URLs with PHP
Categories : PHP, URLs
10 PHP Functions I Bet You Didn't Know About!
Categories : PHP, PHP Functions, Filesystem, Arrays, Errors and Logging
Data, its presentation and user interface forms
Categories : PHP, XML, User Interface
Using the .NET Assembly in PHP
Categories : PHP, .NET
PHP 101 Part 8 of 15 : Databases and Other Animals
Categories : PHP, Beginner Guides, Databases
Saving Images in MySQL
Categories : MySQL, PHP, Graphics, Databases
PHP References Explained
Categories : PHP References, PHP
Handling 404 Error's With Apache
Categories : Apache, Web Servers
Web Development With PHP FastTemplate
Categories : PHP, Templates, FDF
Beginners guide to PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, Installation