#1  
Old 2nd December 2007, 22:49
James E James E is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Post 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
Reply With Quote
Sponsored Links
  #2  
Old 2nd December 2007, 23:18
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default

php5-json is bundled with php5-common so their should be no need to install php5-json as long as you installed php5-common.
Reply With Quote
  #3  
Old 3rd December 2007, 18:56
James E James E is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Post 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
Reply With Quote
  #4  
Old 4th December 2007, 02:29
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default

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
Reply With Quote
  #5  
Old 4th December 2007, 21:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

How do you try to edit the file? With vi, like this?
Code:
vi /etc/apache2/mods-enabled/php5.conf
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 5th December 2007, 18:49
James E James E is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Post

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Server - 7.10 Server (PHP5 & PHP5 Packages Install Snag) giganet HOWTO-Related Questions 8 9th December 2008 22:05
I need some advice on migrating from PHP4 to PHP5. thinktink Installation/Configuration 3 4th December 2007 21:43
Copy compiled php5 to another machine cooljai Installation/Configuration 4 11th October 2007 17:15
Ming and PHP5 P Lao Installation/Configuration 3 7th November 2006 11:15
SuSe10.1 & PHP5 modules latcarf Installation/Configuration 3 11th September 2006 15:31


All times are GMT +2. The time now is 17:33.


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