Home / Linux / Linux Command

Linux Command

Swich the user to root user
$ sudo su

Install httpd service
$ sudo yum install httpd

Install mysql-server service
$ sudo yum install mysql-server

Install php & php-mysql
$ sudo yum install php php-mysql

Install phpmyadmin
$ sudo yum –enablerepo=epel install phpmyadmin

Edit the httpd.conf file
$ nano /etc/httpd/conf/httpd.conf

Create Symolic link in public directory for phpmyadmin
$ sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

Create Symolic link in home directory for public directory
$ sudo ln -s /var/www/html /home/user/public_html

$ sudo chown -R ec2-user /var/www/html
Check the httpd service status
$ service httpd status

Start the httpd service
$ service httpd start

Restart the httpd service
$ service httpd restart

Check the mysqld service status
$ service mysqld status

Start the mysqld service
$ service mysqld Start

Restart the mysqld service
$ service mysqld restart

About v.shakya

I am V.Shakya, Freelance PHP Programmer. I like to share my ideas, views and knowledge to all of you who come across my website. I am young, enthusiastic, highly motivated and self disciplined person. I completed my studies in Master of Computer Application and currently giving my technical expertise to one of the Big IT company. I have more than Ten years of experience in vast field of Programming , Designing and Development of websites and various software's.

Check Also

How to Change Hostname in centos

$ vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=newHostName and: $ vi /etc/hosts 127.0.0.1 newHostName 127.0.0.1 localhost localhost.localdomain localhost4 …

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.