Need some Ubuntu/Apache help

cyberguyprcyberguypr Mod Posts: 6,928 Mod
Disclaimer: My Linux skills are 2 out of 10 so go easy on me.

Having said that, I have an Ubuntu 12.04 LTS box where I installed apache 2.2 and php 5.3.10 using apt-get. The issue that I have is that the owner of the box needs Apache to be at least 2.4 and PHP to be above version 4. It can be 4.x or 5.x. I added ppa: ondrej/php5 and was able to install both Apache 2.4.4 and PHP 5.4.17. The problem is that PHP broke because libapache2-mod-php5 was removed as apart of the upgrade. I haven't bee able to figure out how to add this module.

My question is, is there a fairly simple way to fix this? I found references to more updates version of this but got lost in all the compiling jargon.

Edit: This is the issue I'm seeing: http://ubuntuforums.org/showthread.php?t=2162767

Comments

  • W StewartW Stewart Member Posts: 794 ■■■■□□□□□□
    Are you able to actually reinstall the libapache2-mod-php5 package? If so then you should only need to add a line to your apache configuration file.


    LoadModule php5_module modules/mod_php5.so

    That line may already be preset but commented out. It may not even be commented in which case you need to see if you have these lines in your apache configuration file as well.


    AddHandler application/x-httpd-php .php

    AddType application/x-httpd-php .php
  • cyberguyprcyberguypr Mod Posts: 6,928 Mod
    Thanks for the reply. When I tried reinstalling it there was some error message referencing the original Apache 2.2. I was able to find a more update ppa that had all the packages needed.
  • blueberriesblueberries Banned Posts: 138
    Just curious, but why didn't you get Apache bundled in LAMP? I never had any issues with it this way, and I am an Ubuntu fan, not expert.
Sign In or Register to comment.