PHP
  Home arrow PHP arrow Page 6 - The Soothingly Seamless Setup of Apach...
FaxWave - Free Trial.
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP
By: Israel Denis Jr. and Eugene Otto
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 41
    2000-06-07

    Table of Contents:
  • The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP
  • Assumptions
  • Prerequisites
  • How it Works
  • Game Plan
  • PHP Installation (*NIX)
  • Apache
  • Testing Our Work: Is Apache working?
  • Is SSL Working?
  • Are PHP and MySQL Working Together?
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP - PHP Installation (*NIX)
    (Page 6 of 11 )

    Now it's time to install the PHP (Hypertext Prerocessor) language.

    You are still supposedly root, if not su back to root.

    PHP requires that you have Apache pre-configured so that it knows where where everything is. You will come back to this later in the section when you setup the Apache server. Change back to the directory where you have the sources.
    # cd /tmp/download
    # gunzip -c apache_1.3.12.tar.gz | tar xf -
    # cd apache_1.3.12
    # ./configure --prefix=/usr/local/apache
    # cd ..
    Ok, now you can start with PHP. Extract the source files and change to the new directory.
    # gunzip -c php-4.0.0.tar.gz | tar xf -
    # cd php-4.0.0
    Configure will always be your friend if you are compiling code :-) So, again there are many options with the configure command. Use "configure --help" to determine what you want to add. We just want MySQL and of course Apache.
    # ./configure --with-mysql=/usr/local/mysql \
    --with-xml \
    --with-apache=../apache_1.3.12 \
    --enable-track-vars


    Make and install the binaries.
    # make
    # make install
    Copy the ini file to the lib directory.
    # cp php.ini-dist /usr/local/lib/php.ini
    You can edit the PHP file to set PHP options. You could for example increase the "max_execution_time" in PHP by inserting the following line in your php.ini file.


    max_execution_time = 60;

    More PHP Articles
    More By Israel Denis Jr. and Eugene Otto


     

       

    PHP ARTICLES

    - Setting Up a Web-based Image Hosting Service
    - Comparing Files and Databases with PHP Bench...
    - Setting Up a Web-Based Image Gallery
    - Using Timers to Benchmark PHP Applications
    - Benchmarking Applications with PHP
    - Setting Up a Web-Based File Manager: PHPfile...
    - Developing a Modular Class For a PHP File Up...
    - Setting Up a Web-Based File Manager: bfExplo...
    - Defining a Custom Function for File Uploader...
    - Parsing Child Nodes with the DOM XML extensi...
    - Creating an Error Handling Module for a PHP ...
    - Accessing Attributes and Cloning Nodes with ...
    - Retrieving Information on Selected Files wit...
    - Handling HTML Strings and Files with the DOM...
    - Building File Uploaders with PHP 5




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway