PDA

View Full Version : Need help getting php5 installed smoothly in Fedora 16


Quizmaster
13th May 2012, 09:25 PM
Okay, I need php5-common and and php-curl installed for a webserver class project, but I keep getting this error: Local install failed: Can't install /home/Eddie_Nygma/Downloads/php-common-5.3.8-3.fc16.i686(1).rpm as no transaction. Is this fixable, will it require command-line manual correction or should I try another download site repo or what?

markkuk
13th May 2012, 10:12 PM
Okay, I need php5-common and and php-curl installed for a webserver class project,
Fedora doesn't have packages with those names, are you sure your project requirements don't specify some other distro? There is a php-common packge without "5" in the name and it includes cURL support. If you do "yum install php" then php-common is pulled in as a dependency (and php-common alone is pretty useless).

Drakonas
15th May 2012, 06:42 PM

You're other option is to download XAMPP, if you want an all-in-one package ready to go.

You can get XAMPP from here (http://www.apachefriends.org/en/xampp-linux.html), but if you simply want a webserver running, just running this in terminal:

su -c 'yum install php'

That will install php-common also, which includes php-curl, and will install httpd, which is the apache2 web server you need to actually serve the web pages, if you haven't installed it already.

As the user above said, php-common by itself serves almost no purpose, and won't allow you to run a webserver alone. you need the php package to be able to handle php files, and httpd to actually run the webserver.

Cheers.

Edit: Oh yeah, and just so you know, the 'php' package in Fedora is version 5 by default. I'm not sure if you got that hint from markkuk above.