Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post support questions that directly relate to Linux/Unix operating systems.
Moderators: Developers , Moderators
Math911
Posts: 7 Joined: Tue Jan 03, 2006 1:51 am
Post
by Math911 » Tue Jan 03, 2006 1:58 am
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 .....
pirx
Cacti User
Posts: 199 Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany
Post
by pirx » Tue Jan 03, 2006 2:20 am
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 » Tue Jan 03, 2006 2:41 am
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 » Tue Jan 03, 2006 2:51 am
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
pirx
Cacti User
Posts: 199 Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany
Post
by pirx » Tue Jan 03, 2006 3:14 am
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 » Tue Jan 03, 2006 3:18 am
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 ...
pirx
Cacti User
Posts: 199 Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany
Post
by pirx » Tue Jan 03, 2006 3:27 am
Try to enable it with 'a2enmod php5'.
Math911
Posts: 7 Joined: Tue Jan 03, 2006 1:51 am
Post
by Math911 » Tue Jan 03, 2006 3:29 am
math@fear:~$ sudo a2enmod php5
This module is already enabled!
math@fear:~$
i think it's an apache config file to modify ? no ?
pirx
Cacti User
Posts: 199 Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany
Post
by pirx » Tue Jan 03, 2006 3:37 am
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
pirx
Cacti User
Posts: 199 Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany
Post
by pirx » Tue Jan 03, 2006 3:40 am
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.
pirx
Cacti User
Posts: 199 Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany
Post
by pirx » Tue Jan 03, 2006 3:42 am
Anything interesting in the apache2 log files?
Math911
Posts: 7 Joined: Tue Jan 03, 2006 1:51 am
Post
by Math911 » Tue Jan 03, 2006 3:58 am
i'm going to check
Math911
Posts: 7 Joined: Tue Jan 03, 2006 1:51 am
Post
by Math911 » Tue Jan 03, 2006 4:04 am
all is alright after the apache2 reload
Many thanks
Users browsing this forum: No registered users and 1 guest