Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Reinstalling Apache2 & PHP ?

Got problems with Bubba? Then this forum is for you.
Locked
gorgulator
Posts: 14
Joined: 23 Oct 2007, 08:55

Reinstalling Apache2 & PHP ?

Post by gorgulator »

Hello,
I somehow managed to corrupt my apache/ php installation on bubba. When I now try to access the web-admin link, my bubba only offers me to download the index.php page - so I guess PHP isn't configured correctly.

After apt-get removing and afterwards reinstalling the apache2 and the corresponding php modules as well as the "bubba" package several times I'm nearly at the point to install the whole bubba again ... but that can't be the solution, can it?

Is there a way to completely re-install the Apache/ PHP and Bubba stuff to work again?

Thank you very much for any useful hint or link.
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi gorgulator,

This sounds strange. I have no short instruction on how to reinstall the Apache/PHP. But i can try to help you get php up and running again.

With apache2 and libapache-mod-php4 packages installed. Could you check the availability and the contents of the file

Code: Select all

/etc/apache2/mods-enabled/php4.conf
/Tor
Co-founder OpenProducts and Ex Excito Developer
gorgulator
Posts: 14
Joined: 23 Oct 2007, 08:55

Post by gorgulator »

Hi Tor,

thank you for your fast reply! I already checked that the php4.conf is among the available mods ... here is how my "mods-enabled" directory looks like (maybe there's just too much included ;-) ):

Code: Select all

actions.conf -> /etc/apache2/mods-available/actions.conf
actions.load -> /etc/apache2/mods-available/actions.load
cgi.load -> /etc/apache2/mods-available/cgi.load
cgid.conf -> /etc/apache2/mods-available/cgid.conf
cgid.load -> /etc/apache2/mods-available/cgid.load
php4.conf -> /etc/apache2/mods-available/php4.conf
php4.load -> /etc/apache2/mods-available/php4.load
ssl.conf -> /etc/apache2/mods-available/ssl.conf
ssl.load -> /etc/apache2/mods-available/ssl.load
userdir.conf -> /etc/apache2/mods-available/userdir.conf
userdir.load -> /etc/apache2/mods-available/userdir.load

The content of the php4.conf looks like:

Code: Select all

<IfModule mod_php4.c>
  AddType application/x-httpd-php .php .phtml .php3
  AddType application/x-httpd-php-source .phps
</IfModule>

Thank you,
gorg.[/code]
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Ok, and you have restarted apache since php got enabled?

Could you try to browse any page that does not exist on bubba. Lets say fx http://bubba/nonexisting_page and watch the page output.

Normaly you should see something like

Code: Select all

Not Found

The requested URL /nonexisting_page was not found on this server.
Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e Server at "bubba" Port 80
The interesting part here is if you have any mention of php in your output.

/Tor
Last edited by tor on 23 Oct 2007, 15:18, edited 1 time in total.
Co-founder OpenProducts and Ex Excito Developer
gorgulator
Posts: 14
Joined: 23 Oct 2007, 08:55

Post by gorgulator »

Yes - I restarted Apache (several times ...)

Browsing to a non-existant page leads to:

Code: Select all

Not Found

The requested URL /notthere was not found on this server.
Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-22 mod_ssl/2.0.54 OpenSSL/0.9.7e
So PHP seems to get mentioned. I acces the server via dyndns ... may that lead to a configuration problem?

It also seems that my PHP version differs from the one you have installed. I don't know where I did get that from :?
gorgulator
Posts: 14
Joined: 23 Oct 2007, 08:55

Post by gorgulator »

Hi all,

after apt-get remove'ing

- bubba
- apache2
- php4

and re-installing everything in the reverse order, my problem seems to got solved. I can again reach the web-admin pages!

Unfortunately, now I'm stuck with my original problem that uploads simply don't work. If I start an upload, the whole php Pages don't respond any more. I have to kill apache and restart it.

... I'll search this great forum for further help . :idea:
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

If uploads does not work. Make sure that the ftd daemon is running. Its used both for uploads and downloads.

/Tor
Co-founder OpenProducts and Ex Excito Developer
gorgulator
Posts: 14
Joined: 23 Oct 2007, 08:55

Post by gorgulator »

Hello Tor,

I already opened another thread for my ftd problem, sorry :oops:


http://excito.org/forum/viewtopic.php?t ... highlight=


There seems to be a kind of security issue - I don't understand so far.
Locked