1

I have put together a small ubuntu 10.04 server with apache2 and php for use only for testing purposes. I am finding suphp keeps getting in my way. Doubtless this is a useful tool for security etc, but right now, as this is only a local testing ground I would like to disable it to prevent it continually throwing errors relating to file ownership etc.

So, as the title says: How do I disable suphp on ubuntu server 10.04.

Thanks

Finglish
  • 9,692
  • 14
  • 70
  • 114

2 Answers2

1

a2dismod suphp -> to disable su php mod

gfa
  • 11
  • 2
0

instead of disabling all use virtual hosts conf file or http.conf and add

 <VirtualHost ..>
  suPHP_Engine off
  ...
mustafa
  • 747
  • 3
  • 9
  • 24
  • This is exactly what I want! Only one problem though. When I put it in my virtual hosts file as suggested I get this error: "Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration". All I get from google about this error is the suggestion that suphp is not installed, but my suphp error messages beg to differ. – Finglish Dec 11 '11 at 11:51
  • I do not know if suphp installed or not. You can try this: aptitude install libapache2-mod-suphp – mustafa Dec 11 '11 at 17:03
  • suphp is definitely installed response to apt-get is "libapache2-mod-suphp is already the newest version" – Finglish Dec 11 '11 at 17:54
  • apt-get differs from aptitude in some aspects. I suggest you first update ubuntu and then try aptitude. Let me know the result. – mustafa Dec 12 '11 at 08:12
  • sorry to be so slow coming back. I did as you suggested and updated ubuntu and tried aptitude. It still tells me libapache2-mod-sus is installed – Finglish Dec 15 '11 at 09:39