Install PHP for different OS

You are an absolute beginner? Thinking how to install PHP in your laptop or PC? No probs, Just follow the steps below:

For Windows: you can use wamp or xampp.

1. Install XAMPP:

*Download it from the site: http://sourceforge.net/project/showfiles.php?group_id=61776

*Select and download xamplite-win32-1.6.1-exe

*Run the exe and select Language-English->select drive where you wanna install it etc and complete installation.

For Linux: The most easiest way to install LAMP using yum program in CentOS. Below are the steps to install LAMP (Apache, PHP and MySQL in Linux) using Yum:-

  • Go to CentOS and download a copy of CentOS Linux and install it (i’ll not go thru the how to install CentOS with you here)
  • Once your CentOS is installed. Open a terminal (if you are using X-Window), and type yum install httpd and follow on screen instruction to install apache web server
  • Once apache web server has been installed, type yum install php
  • Once PHP installed successfully, type yum install mysql-server mysql
  • Once everything finish, type service httpd start to start your apache web server, screen will show you if web server service successfully started
  • type service mysqld start to start your mysql server
  • Once both services is running, you can point your browser to http://localhost and you should see a welcome page from CentOS
  • If you see that welcome page, you just installed everything successfull.
  • To test if php is running, go to /var/www/html and create an index.php file with the content <?php phpinfo(); ?>
    and refresh your browser again. If you see a purple PHP information page showing all the php configuration variables, then php is running now.
  • Congratulation, you just successfully installed LAMP in your machine.

or you can get help from here: lamphowto.com/

For MAC: you have to use MAMP caz it is easy to install and free of charge. MAMP stand for Macintos, Apache, Mysql and PHP. You can download it from here: http://www.mamp.info/en/index.php. If you need more help you can buy MAMP Pro.

For Ubuntu:
1. Download Apache2+PHP+MySQL in a single bundle fromwww.apachefriends. org/en/xampp. html

2. Open synaptic and update->Search for Apache2, PHP and select->Install.

XAMPP:

XAMPP is a very easy to install Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin. You can download it from here: http://sourceforge.net/project/showfiles.php?group_id=61776 and install.

Advertisements

3 Responses

  1. XAMPP for Linux contains: Apache, MySQL, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client.

    XAMPP for Windows contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, Ming, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql.

    So, all in one. I enjoy it very much.

  2. Many of life’s failures are people who did not realize how close they were to success when they gave up.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: