(1.) Create the following info.php file in the default htdocs directory phtmlĪddType application/x-httpd-php-source. #Added the following in the relevant sectionsĪddType application/x-httpd-php. (7.) Tell Apache to parse certain extensions as PHP and also to parse. LoadModule php5_module modules/libphp5.so
#Added the following in the relevant section –with-config-file-path=/usr/local/httpd/php \ (3.) Configure PHP for Apache and Mysql support 95% of all problems can be solved either by installing dependencies and development libraries. Apache should now be installed in /usr/local/httpd ! Note: If you face problems such as getting compilation errors, check your permissions. Note: If you face problems such as getting configuration and compilation errors, check your permissions. If all goes well, Mysql is now installed and should be running!! (6.) Copy the main my.cnf file and change the necessary permissions and run MysqlĬp support-files/my-medium.cnf /etc/my.cnf (4.) Got to source directory and run configure (1.) Create the necessary mysql user and mysql group The following guide details the installation and configuration of this 3 powerful components.
#Download php 5.2 for linux code#
PHP generally runs on a web server, taking PHP code as its input and creating Web pages as output. PHP is a reflective programming language originally designed for producing dynamic web pages.PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. MySQL is most commonly used for Web applications and for embedded applications and has become a popular alternative to proprietary database systems such as Oracle and Sybase because of its speed and reliability. MySQL is a robust Relational Database Management System (RDBMS) that relies on Structured Query Language (SQL) for processing the data in the database.
#Download php 5.2 for linux install#
In this guide, we will install and configure a simple Apache-2.2.8 web server with PHP-5.2.4 and Mysql-5.0.45. According to the data provided by, 50% of all web sites are running on Apache web servers. Apache is a high performance and scalable web server notable for playing a key role in the initial growth of the World Wide Web. It’s the web server’s job to deliver both static and dynamic contents to end-users via browsers such as Mozilla Firefox and Internet Explorer.Īpache is to web servers what Bind is to DNS servers. It is the web server which provides the content and information that we are used to seeing these days. Without Web servers, the Internet would just be as dull as sending and receiving emails. Firefox, Internet Explorer), and serving them HTTP responses along with optional data contents, which usually are web pages such as HTML documents and linked objects (images, etc.). This How-To can be used either on Linux with Kernel version 2.4 and higher or on FreeBSD-6.x systems.įrom wikipedia, the definition of a web server is as follows:Ī computer program that is responsible for accepting HTTP requests from clients, which are known as web browsers (e.g. This How-To guides you through the steps to install and configure the most popular and powerful Apache-2.2.8 web server with PHP-5.2.5 and Mysql-5.0.45.