Ask Your Question

How do I correctly install PHP on Fedora?

asked 2011-12-27 16:21:59 -0500

willettwork gravatar image

updated 2011-12-29 21:53:42 -0500

FranciscoD_ gravatar image

Found php scripting language in add/remove. Installed it. But php is noT working on my system. what did I miss?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-12-30 00:32:26 -0500

yn1v gravatar image

updated 2011-12-30 02:47:41 -0500

FranciscoD_ gravatar image

If you are going to use php for developing with web probably will need to install something like this:

yum install php php-cli php-mysql mysql mysql-server httpd

php-cli is the command line interpreter to check simple php code in the terminal, but for full php testing you will need to load the php file in the browser from your local webserver, so you files should be in:


Also files should be with proper permisions, ownership and groups

You can choose not to install mysql and mysql-server if you are not intending to use database in your code.

In any case remember that services should be running:

systemctl start httpd.service
systemctl start mysqld.service
edit flag offensive delete link more


I get the error message when I'm trying to stat the service

Jul 31 11:27:16 localhost-fedora18 systemd[1]: Starting The Apache HTTP Server...

Jul 31 11:27:16 localhost-fedora18 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

Jul 31 11:27:16 localhost-fedora18 httpd[6835]: httpd (no pid file) not running

Jul 31 11:27:16 localhost-fedora18 systemd[1]: Failed to start The Apache HTTP Server.

Jul 31 11:27:16 localhost-fedora18 systemd[1]: Unit httpd.service entered failed state.

What may be the problem?

jayaneetha gravatar imagejayaneetha ( 2013-07-31 01:00:51 -0500 )edit

answered 2011-12-29 21:58:16 -0500

FranciscoD_ gravatar image

Have you tried to google this up? I see plenty of search results for "installing php on fedora 16" :)

edit flag offensive delete link more


How the hell you think we ended up on here - you little snot

snakeoil gravatar imagesnakeoil ( 2018-05-08 08:08:25 -0500 )edit

Question Tools


Asked: 2011-12-27 16:21:59 -0500

Seen: 19,088 times

Last updated: Dec 30 '11