Troubleshooting
Problem
RTM GUI does not show login page properly after installation
Symptom
After install RTM 2.0.8 in Rhel 6,
When access http://<hostname>/cacti, the page looks like
Cause
Web server cannot interpret php code
Environment
Rhel 6
Diagnosing The Problem
Put a simple php file under httpd root /var/www/html and give it read-all permission
# cat test.php
<?php
phpinfo();
?>
Access the php file from web browser http://<hostname>/test.php
Nothing shows up.
On turning on browser debug, all the php code is commented out.
Resolving The Problem
Check /etc/httpd/conf/httpd.conf and /etc/httpd/conf.d/php.conf,
If both of them have the following two lines, comment them out in one of the files, and restart httpd
AddHandler php-script .php
AddType text/html .php
Having this same entry in both places leads to a conflict, requirement is to have it defined in one or the other to make it work.
Was this topic helpful?
Document Information
Modified date:
19 August 2022
UID
isg3T1015308