Probleme on new install ubuntu

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Math911
Posts: 7
Joined: Tue Jan 03, 2006 1:51 am

Probleme on new install ubuntu

Post by Math911 »

Hi,

I've got some problem to reconfigure my cacti after the install.

When i've installed it the first time i made a mistake :

I have selected the apache web server but i was in apache2

How i can correct this ?

Because now only the apache2 is running and when i try to access cacti login page, it ask me if i want to download the index.php :)

that's not exactly what i want ;)

Many thanks.

Mathieu

my conf :

php5
mysql 4.1 (last update today :) )
apache2

for information i've a phpwebgallery which is running very well ;)

you can access here :

http://fear.dnsalias.net/gallery (it's in french :) )

But cacti .....
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

I would try to reconfigure the cacti settings with 'dpkg-reconfigure cacti'. It should also be possible to copy /etc/apache/conf.d/cacti.conf to the apache2 conf.d directory (these are the debian paths, I don't know if they are the same in ubuntu).

Ralf
Math911
Posts: 7
Joined: Tue Jan 03, 2006 1:51 am

Post by Math911 »

thanks

i've already tried to copy the cacti.conf in the apache2 conf.d directory bt the problem is the same

I will try to reconfigure cacti via dpkg ;)

I take you aware ;)

Mathieu
Math911
Posts: 7
Joined: Tue Jan 03, 2006 1:51 am

Post by Math911 »

it's always the same

:(

another idea ?

I think the problem is from apache which can't read the php files ...

where can i check if the problem come from ?

tests? config files ?

Thanks

Mathieu
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

Do you have libapache2-mod-php5 installed? You can try to query/enable the module with apache-modconf.

query:
/usr/sbin/apache-modconf apache query php5

enable:
usr/sbin/apache-modconf apache enable php5

For apache2 the tool might have a different name. Don't forget to restart apache!

Ralf
Math911
Posts: 7
Joined: Tue Jan 03, 2006 1:51 am

Post by Math911 »

i've tried these commands like this :

math@fear:~$ sudo /usr/sbin/apache-modconf apache query php5
Password:
math@fear:~$ sudo /usr/sbin/apache-modconf apache enable php5
math@fear:~$

is it like this ?

if yes the problem is the same ... :(
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

Try to enable it with 'a2enmod php5'.
Math911
Posts: 7
Joined: Tue Jan 03, 2006 1:51 am

Post by Math911 »

math@fear:~$ sudo a2enmod php5
This module is already enabled!
math@fear:~$

:)

i think it's an apache config file to modify ? no ?
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

Yes, but a2enmod should exactly do that. Have you restartet apache2 after installing/enable php5?

In your /etc/apache2/apache2.conf file, do you have the following lines:

Code: Select all

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
AddType application/x-httpd-php .php
Ralf
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

I'm a bit confused because you wrote
for information i've a phpwebgallery which is running very well
That's something I don't understand, because of this I don't think that it's a php problem.
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

Anything interesting in the apache2 log files?
Math911
Posts: 7
Joined: Tue Jan 03, 2006 1:51 am

Post by Math911 »

i'm going to check
Math911
Posts: 7
Joined: Tue Jan 03, 2006 1:51 am

Post by Math911 »

all is alright after the apache2 reload

Many thanks ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest