How do I get php working in Ubuntu Hoary
March 17, 2005 4:38 PM   Subscribe

So I upgraded from warty warthog to hoary hedgehog and something broke PHP on my box. Any ideas as to where I should look to fix this. I already have: DirectoryIndex index.html index.htm index.shtml index.cgi index.php and AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps in my httpd.conf file.
posted by outofpaper to Computers & Internet (5 answers total)
 
Can you expand on "broke"?
posted by cillit bang at 7:13 PM on March 17, 2005


First, you didn't mention either LoadModule or AddModule; are those set up correctly?

Second, this problem description is awfully vague. As cillit bang said, expanding on broke would be a great start. And expanding on "upgraded" would be doubleplusgood.
posted by boaz at 7:38 PM on March 17, 2005


Best answer: I maybe can help with the upgrade part:
#sed -e 's/warty/hoary/g' /etc/apt/sources.list > s.l.tmp && mv s.l.tmp /etc/apt/sources.list
#apt-get update && apt-get dist-upgrade
That was a good day, nothing broke and I am happy with the results. However, I cannot help with PHP at all.
posted by wzcx at 8:57 PM on March 17, 2005


Best answer: When you say "broke" do you mean PHP doesn't work? Or do you mean broke as in "Apache refuses to start because the PHP module isn't loading" broke?

I've not munged around with Ubuntu myself but in upgrading other Linux boxes I've discovered that I often needed to reinstall the PHP package after doing so. Occasionally there's a package dependency that is mangled due to a seemingly unrelated bit being updated or removed.

If you are not getting an apache start at all, what error are you getting after a failed restart?
posted by caution live frogs at 8:51 AM on March 18, 2005


Is there anything interesting in the error log? Do PHP pages get served out as downloads, plain text, what?
posted by yerfatma at 8:08 AM on March 19, 2005


« Older Legal post-broadcast online TV   |   Setting up a spoken word studio environment with a... Newer »
This thread is closed to new comments.