Install PHP and mysql on Centos 7

After installing Centos7, any guideline on installing php, mysql and apache ?

I have already installed the following tasks but try to access the web http:\\myIPaddress but it doesn't work.
yum install php
yum install httpd

beside, is it enough to patch my Centos to the latest version by running the following :
yum check-update
yum upgrade
AXISHKAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Check ps auxww + ensure apache is running... Will be either apache2 or httpd...

Check netstat -pluten + ensure apache is listening on ports you expect...

Check /var/log/apache2/*.log (or your equivalent) + check for any odd messages + fix any diagnostics emitted.
0
arnoldCommented:
yum listgroups
Includes a complete set that sets up a web ..

yum install group "web server"
Yum install mysql
......
0
AXISHKAuthor Commented:
The Apache should be listened on port 80. However, I can access it through IE in my workstation. I can ping and ssh to the server. There is nothing logged in access_log under /var/log/httpd.

[root@localhost ~]#  netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/systemd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      12185/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1576/master
tcp6       0      0 :::111                  :::*                    LISTEN      1/systemd
tcp6       0      0 :::80                   :::*                    LISTEN      1290/httpd
tcp6       0      0 :::22                   :::*                    LISTEN      12185/sshd
tcp6       0      0 ::1:25                  :::*                    LISTEN      1576/master
0
arnoldCommented:
/var/log/httpd is a directory access.log
Check the httpd.conf file to see whether you are logging requests.

Your output indicates a service, Httpd is listening on port 80.
You do not have a MySQL  M in the LAMP SETUP.
php has to be configured within the httpd.cobf ....

When using browser to access this system what do you see, the generic Apache httpd page.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.