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
no WebGUI
Moderators: Developers, Moderators
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.
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.
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
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
-
- Posts: 10
- Joined: Fri Sep 06, 2002 2:18 pm
Hey, great advise, can you send me doc?
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.
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!!
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
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
Who is online
Users browsing this forum: No registered users and 4 guests