<p>I would install PHP via a third-party repository. I use Ondřej Surý's and I'm pretty happy with it. It installs PHP 5.5.</p>

<p><a href="https://launchpad.net/~ondrej/+archive/ubuntu/php5" rel="nofollow">https://launchpad.net/~ondrej/+archive/ubuntu/php5</a></p>

CC BY-SA 3.0
2015-09-09T15:21:29.033Z
I did that and I'm still at PHP 5.3. Here's the exact terminal commands I executed:
Paul Timoce
CC BY-SA 3.0
2015-09-09T15:21:51.227Z
sudo add-apt-repository ppa:ondrej/php5-oldstable;
sudo apt-get update;
sudo apt-get install php5
Paul Timoce
CC BY-SA 3.0
2015-09-09T15:25:14.240Z
I'm not sure how you're getting 5.3 because the php5-oldstable is 5.4. Why not use the latest php5 repository? Also, what version of Ubuntu are you using?
Bryan Redeagle
CC BY-SA 3.0
2015-09-09T15:28:00.330Z
I have a Ubuntu 10.04.4 LTS server and I did try using the latest php5 repository
Paul Timoce
CC BY-SA 3.0
2015-09-09T15:32:52.867Z
That is your problem right there. Ubuntu 10.04 is not supported in either of those repositories. The more recent one supports 12.04 and up and the oldstable only supports 12.04. Ubuntu is seeing that and falling back on it's own php5 package which is probably 5.3.2. You need to update Ubuntu.
Bryan Redeagle
CC BY-SA 3.0
2015-09-09T16:09:31.953Z
Are you on a VPS? The best option is make a new instance / linode / droplet, etc.  Upgrading a production server is risky at best. But if you're feeling adventurous, updating to 12.04 is pretty straightforward iirc. That'll let you run Craft without a ppa—at least until 3 comes out. But if it were me, I'd get on 14.04 asap. You'll have to jump to 12.04 first. The biggest change is Apache 2.4 which changes some of the config syntax so if you have a lot of websites/services on that server or  a mission critical website, that can be problematic. Of course backup first!
RitterKnight
CC BY-SA 3.0
2015-09-09T17:32:01.187Z
Thank you guys for the support... Yes. I will think about moving to at least 14.04 asap but I will need to devote some time for that. Untill then, i can work without Craft since Craft was just a nice to have and not a critical component.
Paul Timoce
CC BY-SA 3.0
2015-09-09T15:09:46.640Z
2015-09-09T15:09:46.640Z
Bryan Redeagle
<p>Here's the error I get: "You have an insecure version of crypt installed. Please update PHP to 5.3.7 or later". I have PHP Version 5.3.2 installed on my Ubuntu server and cannot switch to a new version no matter what I do. I also tried to php5enmod mcrypt and it gives me command not found. I did the classic </p>

<p>sudo apt-get update;
sudo apt-get install php5;
sudo apt-get install php5-mcrypt;</p>

<p>Can you guys help? My phpinfo() doesnt show mcrypt as being installed even though it is installed actually. I am out of ideas</p>

<php><requirements><mcrypt>
Your server doesn’t meet the following requirements to run Craft
# Your server doesn’t meet the following requirements to run Craft

(Asked by: username_0 on 2015-09-09)

Here's the error I get: "You have an insecure version of crypt installed. Please update PHP to 5.3.7 or later". I have PHP Version 5.3.2 installed on my Ubuntu server and cannot switch to a new version no matter what I do. I also tried to php5enmod mcrypt and it gives me command not found. I did the classic

sudo apt-get update;
sudo apt-get install php5;
sudo apt-get install php5-mcrypt;

Can you guys help? My phpinfo() doesnt show mcrypt as being installed even though it is installed actually. I am out of ideas

**Tags:** php, requirements, mcrypt


---

## 1 answers

### Answer by username_1 on 2015-09-09. Score: 2 | Accepted answer

I would install PHP via a third-party repository. I use Ondřej Surý's and I'm pretty happy with it. It installs PHP 5.5.

<https://launchpad.net/~ondrej/+archive/ubuntu/php5>

> **Comments:**
> **username_0**: I did that and I'm still at PHP 5.3. Here's the exact terminal commands I executed:  
> **username_0**: sudo add-apt-repository ppa:ondrej/php5-oldstable; sudo apt-get update; sudo apt-get install php5  
> **username_1**: I'm not sure how you're getting 5.3 because the php5-oldstable is 5.4. Why not use the latest php5 repository? Also, what version of Ubuntu are you using?  
> **username_0**: I have a Ubuntu 10.04.4 LTS server and I did try using the latest php5 repository  
> **username_1**: That is your problem right there. Ubuntu 10.04 is not supported in either of those repositories. The more recent one supports 12.04 and up and the oldstable only supports 12.04. Ubuntu is seeing that and falling back on it's own php5 package which is probably 5.3.2. You need to update Ubuntu.  
> **username_2**: Are you on a VPS? The best option is make a new instance / linode / droplet, etc.  Upgrading a production server is risky at best. But if you're feeling adventurous, updating to 12.04 is pretty straightforward iirc. That'll let you run Craft without a ppa—at least until 3 comes out. But if it were me, I'd get on 14.04 asap. You'll have to jump to 12.04 first. The biggest change is Apache 2.4 which changes some of the config syntax so if you have a lot of websites/services on that server or  a mission critical website, that can be problematic. Of course backup first!  
> **username_0**: Thank you guys for the support... Yes. I will think about moving to at least 14.04 asap but I will need to devote some time for that. Untill then, i can work without Craft since Craft was just a nice to have and not a critical component.  

---

