<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi guys.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Slight emergency!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Some how I've managed to break our Debian Sarge's
installation of Apache2 and suPHP. In a command prompt I typed:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>apt-get remove openssl</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(because I wanted to update to the latest version),
and it went ahead and removed:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ns:~# apt-get remove openssl<BR>Reading Package
Lists... Done<BR>Building Dependency Tree... Done<BR>The following packages will
be REMOVED:<BR> apache2 apache2-common apache2-mpm-prefork bincimap
libapache2-mod-php5<BR> libapache2-mod-suphp openssl ssl-cert suphp-common
webmin webmin-apache<BR> webmin-core<BR>0 upgraded, 0 newly installed, 12
to remove and 1 not upgraded.<BR>Need to get 0B of archives.<BR>After unpacking
31.5MB disk space will be freed.<BR>Do you want to continue? [Y/n] y<BR>(Reading
database ... 23676 files and directories currently installed.)<BR>Removing
apache2 ...<BR>Removing libapache2-mod-php5 ...<BR>This module is already
disabled, or does not exist!<BR>Removing webmin-apache ...<BR>Removing
apache2-mpm-prefork ...<BR>Stopping web server: Apache2.<BR>Removing bincimap
...<BR>Removing webmin-core ...<BR>Removing webmin ...<BR>Stopping webmin:
webmin.<BR>Removing libapache2-mod-suphp ...<BR>Your apache2 configuration is
broken, so we're not restarting it for you.<BR>Removing suphp-common
...<BR>Removing apache2-common ...<BR>Removing ssl-cert ...<BR>Removing openssl
...<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I've reinstalled webmin, openssl, suphp, apache and
everything it mentions in the list above, but whenever I go to the website now
and access a PHP script, I simply get a download box (of type
application/x-httpd-php) and when I click open I see the PHP source... It serves
HTML/images/static files fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am the PHP programmer in this particular outfit,
and the person that does the sysadmin is on holiday for 2 weeks (he only went on
saturday!)... So I'm in a pickle!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Things I've tried so far to fix it
are:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. a2enmod suphp</FONT></DIV>
<DIV><FONT face=Arial size=2>2. a2enmod php5</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>But I think they were already enabled. Most
of the configuration appears not to have been removed.</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>I've followed 2 tutorial about settingup php5
and suphp on apache2/debian, but neither helped (it was </FONT><A
href="http://www.debian-administration.org/articles/84"><FONT
size=2>http://www.debian-administration.org/articles/84</FONT></A><FONT
size=2> and </FONT><A
href="http://www.google.co.uk/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.howtoforge.com%2Fapache2_suphp_php4_php5&ei=AB_1RebaOaCg0ASjx827AQ&usg=__0KlK4MXGgK8bRd0OMlUO9fFgUoI=&sig2=JqlU2sI3kcO9C32OFKr4kA"><FONT
size=2>http://www.google.co.uk/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.howtoforge.com%2Fapache2_suphp_php4_php5&ei=AB_1RebaOaCg0ASjx827AQ&usg=__0KlK4MXGgK8bRd0OMlUO9fFgUoI=&sig2=JqlU2sI3kcO9C32OFKr4kA</FONT></A><FONT
size=2>)...</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>So I really don't know what to try
next!</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Any suggestions fellas?!</FONT></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kind regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Richard Hayes<BR>DomainArena<BR><A
href="mailto:ricky@domainarena.net">ricky@domainarena.net</A></FONT></DIV></BODY></HTML>