Install LAMP Server CentOS Five 64-Bit EditionInstall LAMP Server CentOS Five 64-Bit Edition

Install LAMP Server CentOS Five 64-Bit Edition

Finally got my server up & walking for me to make use of. Regrettably for me, I was already sleeping & I had work today so I wasn't able to actually play with it until tonight. like other VPS & dedicated servers out there, the server is usually bare boned with no program except the operating method. for me I decided to make use of CentOS five 64-bit edition to get my web server up & walking. my web had Apache two pre-installed on my VPS for me but that was much about it. So I had to scramble around & search for an simple way to put in Mysql & PHP to go with my Linux Apache server.

After some searching, I realized that it is really easy because Linux CentOS Five comes pre-bundled with Yum. Yum is a feature that allows you to download and install software automatically. it will determine all of the dependencies and take care of the rest. I determined which packages I needed and sent off my command:

yum install php php-mysql mysql-server php-gd postgres ImageMagick ImageMagick-devel

This determined all of the dependencies and installed PHP and Mysql on my CentOS Linux server it was so easy I just needed to give Apache a reboot and php was pretty much up and running. to give it a test, I just wrote a simple line of code in /var/www/html/test.php.

Then visit yourhost/test.php If your php server is setup correctly, this should output all of the information about your php install and the different components that were installed with it. it will give you a list of all your configurations and plugins that are enabled.

The next step was getting mysql up and running. after the yum install, the daemon is not automatically started so you will need to start it yourself. you can start the mysql daemon but running the following command:

If everything goes well, the service ought to start without a hitch and it will give you a list of directions for first time users. of the most important things to do now is to set a password for the root user in mysql. again like everything else it is a simple one liner to alter the mysql password:

/usr/bin/mysqladmin -u root password ‘mynewpassword’

Thats it after only a few simple commands in Linux, I was one time able to receive a bare-boned CentOS five method up and walking with a full LAMP install. this method will take a max of five minutes to complete. But for me.. I was one time busy googling it took me about 30 minutes to an hour.. so hopefully this will help you.

0 comments:

Posting Komentar