PDA

View Full Version : Can't start the confiuration page


cfxjf
28-07-2005, 20:43
I have zabbix installed on a Redhat 9 system. I finished all the steps in the installation procedure. But when I tried to open the configuration page http://localhost/~zabbix, it always returns error message below,

Forbidden
You don't have permission to access /~zabbix/ on this server

I know the apache is upruning because I can go to http://localhost to get the default apache page.

Can anybody give me a hint or two? Thanks a lot.

mconigliaro
28-07-2005, 21:09
you might check the contents of your apache error_log. the problem may be simply that index.php is not set as a document index in apache. try browsing directly to index.php and see if the error goes away. otherwise, it's probably a permissions problem.

Alexei
28-07-2005, 21:10
Perhaps Apache is running under an user account which doesn't have permissions to access ~zabbix/.

Check permissions of /home/zabbix/.

cfxjf
28-07-2005, 21:20
Thanks gyratedotorg and Alexei for your kind reply.

I changed permission of /home/zabbix and everything underneath to 777 in order to troubleshooting. But it still return the same error.

If I try to open http://localhost/~zabbix/index.php, It will display the content of the index.php script in the web browser.

I am newbie to the php and apache. Right now I have no idea where to look.

Thanks again,

mconigliaro
28-07-2005, 21:26
it sounds to me like you dont have php installed.

cfxjf
28-07-2005, 21:35
In the apache error log, I found lots of lines like below,

[Thu Jul 28 16:29:27 2005] [error] [client 10.100.8.15] Directory index forbidden by rule: /home/zabbix/public_html/

I don't know where to change the rule it mentioned.

RPM query result as follow,

[root@brat logs]# rpm -qa |grep php
php-imap-4.2.2-17
php-manual-4.2.2-17
asp2php-0.76.2-5
php-devel-4.2.2-17
php-pgsql-4.2.2-17
php-ldap-4.2.2-17
php-snmp-4.2.2-17
php-mysql-4.2.2-17
php-odbc-4.2.2-17
php-4.2.2-17
asp2php-gtk-0.76.2-5

It seems to me that php is installed.

Thanks

mconigliaro
28-07-2005, 21:53
it seems like apache isnt configured for php. if you see the actual php code when you browse to index.php, that means the php module isnt being loaded, and/or apache doesnt know what to do with .php files.

from what you describe, im pretty confident that the errors you see in your error_log are due to the fact that index.php isnt set as a default index.

does your distro have a mod_php package? if so, install that. it might be that you only have the cli version of php installed.

cfxjf
28-07-2005, 22:09
Thanks gyratedotorg for the help. It looks like I have some packages missing.