can't install php

Asked by yogeshpatel

i am trying to install php through terminal but getting error message
my command is:-yogesh@yogesh-desktop:~$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package apache2
.................................
above error occured pls give me prompt reply

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Omer Akram (om26er) said :
#1

first of all make it clear if you want to install apache or php. to install php sudo apt-get install php5 and to install apache : sudo apt-get update && sudo apt-get install apache2 might work

Revision history for this message
yogeshpatel (drp-rdp) said :
#2

i want to install apache2,php and mysql but i am getting error that i have pasted earlier post
give me error solution

Revision history for this message
Ryan Dwyer (ryandwyer) said :
#3

Go into System > Administration > Software Sources and make sure the 4 boxes on the Ubuntu Software tab are checked. Go to the Other Software tab and make sure archive.canonical.com is checked. Then reload the package information and try again.

Can you help with this problem?

Provide an answer of your own, or ask yogeshpatel for more information if necessary.

To post a message you must log in.