Home arrow PHP arrow Page 6 - The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP

PHP Installation (*NIX) - PHP

The much anticipated update to our original article on getting Apache, MySQL, Mod_SSL, and PHP to work seamlessly with each other is finally here! Ever try to get Apache, Mod_SSL, PHP, and MySQL all working in harmony on the same box? It's a very difficult task, but article author Israel Denis Jr. has come up with detailed instructions for compiling all these and getting them working together seamlessly to make the killer server software system.

  1. The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP
  2. Assumptions
  3. Prerequisites
  4. How it Works
  5. Game Plan
  6. PHP Installation (*NIX)
  7. Apache
  8. Testing Our Work: Is Apache working?
  9. Is SSL Working?
  10. Are PHP and MySQL Working Together?
  11. Conclusion
By: Israel Denis Jr. and Eugene Otto
Rating: starstarstarstarstar / 41
June 07, 2000

print this article


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 \

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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: