LAMP Server Setup CentOS 5 64-Bit

So at about 1am this morning, Burst.Net finally gothtml/test.php.phpinfo();
my server up and running for me to use.Then visit yourhost/test.php If your php server is
Unfortunately for me, I was already sleeping and Isetup correctly, this should output all of the
had work today so I wasn't able to actually play withinformation about your php install and the different
it until tonight. Like other VPS's and dedicated serverscomponents that were installed with it. It will give
out there, the server is usually bare boned with noyou a list of all your configurations and plugins that
software except the operating system. For me Iare enabled.
decided to use CentOS 5 64-bit edition to get myThe next step was getting mysql up and running.
web server up and running. Burst.NET had Apache 2After the yum install, the daemon is not automatically
pre-installed on my VPS for me but that was prettystarted so you will need to start it yourself. You can
much about it. So I had to scramble around andstart the mysql daemon but running the following
search for an easy way to install Mysql and PHP tocommand:service mysqld start
go with my Linux Apache server.If everything goes well, the service should start
After some searching, I realized that it is really easywithout a hitch and it will give you a list of directions
because Linux CentOS 5 comes pre-bundled withfor first time users. One of the most important
Yum. Yum is a feature that allows you to downloadthings to do now is to set a password for the root
and install software automatically. It will determine alluser in mysql. Again just like everything else it is just
of the dependencies and take care of the rest. Ia simple 1 liner to change the mysql password:
determined which packages I needed and sent off/usr/bin/mysqladmin -u root password
my command:yum install php php-mysql mysql-server'mynewpassword'
php-gd postgres ImageMagick ImageMagick-develThats it! After only a few simple commands in Linux,
This determined all of the dependencies and installedI was able to get a bare-boned CentOS 5 system up
PHP and Mysql on my CentOS Linux server! It wasand running with a full LAMP install. This process will
so easy!! I just needed to give Apache a reboot andtake a max of 5 minutes to complete. But for me.. I
php was pretty much up and running. To give it awas busy googling it took me about 30 minutes to
test, I just wrote a simple line of code in /var/wwwan hour.. so hopefully this will help you.