Ad Widget

Collapse

PHP not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mark.ji
    Junior Member
    • Dec 2016
    • 1

    #1

    PHP not working

    Hi Guys,


    I have installed Zabbix 3.0 in a redhat 6.5 servers. And I installed PHP5.4 and have it enabled permanently as well.

    But when I tried to access : http://<zabbix server name>/zabbix, I got 4.3 forbidden.

    And If I try http://<zabbix server name>/zabbix/index.php, what I got will be the source code for index.php. The php code is not executed.

    Can anybody tell me what's the issue and how can I fix it ?

    other information:
    [root@myauvln01102301 conf.d]# php -v
    PHP 5.4.40 (cli) (built: Jul 22 2016 07:31:37)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies


    PHP configuration in below file
    /etc/httpd/conf.d/zabbix.conf

    <Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    <IfModule mod_php5.c>
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value always_populate_raw_post_data -1
    php_value date.timezone Australia/Melbourne
    </IfModule>
    </Directory>
Working...