no WebGUI

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
tetsuo

no WebGUI

Post by tetsuo »

hi,

i installed cacti, but i have no WebGUI.
i get an Forbidden Error by the Apache Server.

after that i created an alias to th cacti path.
i i go to http://server/cacati/index.php i got ascii.

thx for help
tetsuo
User avatar
youngmug
Posts: 15
Joined: Wed Jun 19, 2002 4:34 pm
Location: California, USA
Contact:

Post by youngmug »

You need to make sure that .php is mapped as a correct type for Apache to send to the PHP parser.

From some docs I wrote:

PHP normally installs itself as a module in the Apache httpd.conf file. It is important to make sure this is successful, and to also add another line to add support for the PHP files themselves. Check your httpd.conf file (in the conf directory under your Apache base directory) to make sure the following line exists. If it does not, confirm a PHP directory exists under your Apache base directory, and if so, add it manually.

LoadModule php4_module modules/libphp4.so

Now, you have to add a line to enable Apache to send PHP files through the module. You can actually make any file extension work for PHP, allowing you to create custom extensions or even hide PHP in html files. For Cacti, you need to enable support for files ending in .php. Simply add this line in your httpd.conf file.

AddType application/x-httpd-php .php

You should now start the httpd daemon and confirm that php and Apache are both functional.
Guest

Post by Guest »

hi,

i added
LoadModule php4_module /usr/lib/apache/libphp4.so
and
AddType application/x-httpd-php .php
to my httpd.conf

if i do an apachectl startssl
i get an
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/apache/bin/apachectl startssl: httpd could not be started

thx for help
tetsuo
User avatar
youngmug
Posts: 15
Joined: Wed Jun 19, 2002 4:34 pm
Location: California, USA
Contact:

Post by youngmug »

Then PHP is not installed, or not avaliable. You will need to find if it is installed and where it is. If you need some more guidance, I have a guide for setting up cacti on Apache2 and PHP. Just reply and I'll send the guide or post it somewhere.
cyberkatis
Posts: 10
Joined: Fri Sep 06, 2002 2:18 pm

Hey, great advise, can you send me doc?

Post by cyberkatis »

Iv'e been working tirelessly to get this great app working but I have some basic issues I can't get solved.

I get a permission denied to /cacti/ on this server when I try to browse to the directory.

RaX recommended giving rights to the web server on RedHat 7.3 to apache. I did this and I still have no rights to access the file in that directory? What am I missing here?

As far as php everything you mentioned in this post looks good.

Thanks for any help.

Chris.
Linux Newbie, But LOVING IT!!
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Another thing to consider is, did you untar cacti into your web root? This is normally either '/var/www/html' or '/home/httpd/htdocs'. If cacti does not exist under your web root, it will not work.

Also, your web server may not be running as the user apache. You can check your httpd.conf file to check for sure though.

-Ian
Guest

Oh NO!!

Post by Guest »

I hate that when that happens. NO, I installed it under my normal home directory.

Let me reinstall it there and see what happens...thx.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests