HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Php5 (http://www.howtoforge.com/forums/showthread.php?t=17924)

James E 2nd December 2007 21:49

Php5
 
Hi, I'm following the tutorial The Perfect Setup - Ubuntu Feisty Fawn (Ubuntu 7.04) - Page 6, I' am using the command given to download PHP5 here is the command: apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

When I enter the command this is the output: Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-json is a virtual package provided by:
php5-common 5.2.3-1ubuntu6.1
You should explicitly select one to install.
E: Package php5-json has no installation candidate

What should I do? I have run apt-get update --fix-missing and apt-get update and apt-get upgrade, I' t would be great if you could help me .

Thanks,
James E

daveb 2nd December 2007 22:18

php5-json is bundled with php5-common so their should be no need to install php5-json as long as you installed php5-common.

James E 3rd December 2007 17:56

apache
 
Hi,
Thanks for the advice, It worked,

But when I get to the next step:"15.1 Disable PHP Globally", I get to the part where you have to edit the file:/etc/apache2/mods-enabled/php5.conf, when i enter it it is completely empty except at the bottom where it says:"/etc/apache2/mods-enabled/php5.conf" 0 lines, 0 characters.

What should I do?

Thanks James E

daveb 4th December 2007 01:29

when you installed php5 on page 6 you still installed just without php5-json ?
Code:

apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

falko 4th December 2007 20:39

How do you try to edit the file? With vi, like this?
Code:

vi /etc/apache2/mods-enabled/php5.conf

James E 5th December 2007 17:49

Hi,

I entered the text from the example on the tutorial manually into the file:/etc/apache2/mods-enabled/php5.conf, the file now shows :
<IfModule mod_php5.c>
# AddType application/x-httpd-php .php .phtml .php3
# AddType application/x-httpd-php-source .phps
</IfModule>

~
~
~
~
~
~
~
~
"/etc/apache2/mods-enabled/php5.conf" 4 lines, 135 characters

Is this ok?

Thanks,
James E

falko 6th December 2007 15:36

Yes, looks good. :)

James E 8th December 2007 19:22

Thanks
 
Hi,
Thanks for the help,
It works,

James E:)


All times are GMT +2. The time now is 05:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.