Issue with Cacti installation

 

Symptom

 
During  installation of Cacti on the Dialogic Gate Control Element Management System (GCEMS) server, issues may be encountered when running the installation scripts located in the /cacti_install directory. 

There are three installation scripts: install_mysql.sh, install_apache.sh, and install_php.sh. 

Note: It is important to run the Cacti installation steps in the order given above. 

The following is an example of an issue that may be encountered:
 

[root@jc-dell cacti-install]# ./install_apache.sh : No such file or directory: cd: /cacti-install tar (child): httpd-2.2.4.tar.gz\r: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors : No such file or directory: cd: httpd-2.2.4 ./install_apache.sh: line 4: ./configure: No such file or directory : command not found: line 5: make '. Stop. No rule to make target `install : command not found: line 7: cp: cannot stat `/www/bin/apachectl': No such file or directory : No such file or directory: cd: /etc/rc3.d/ ln: `S85httpd\r': File exists ln: `K85httpd\r': File exists : No such file or directory2: cd: /etc/rc5.d/ ln: `S85httpd\r': File exists ln: `K85httpd\r': File exists ./install_apache.sh: line 15: /www/bin/apachectl: No such file or directory : command not found: line 16: : No such file or directory7: cd: /cacti-install [root@jc-dell cacti-install]#

 

Reason for the issue

 The install scripts were in DOS/MAC format and needed to be converted to UNIX format.

Fix / Solution:

  1. Run the dos2unix command as root user on the install script that is having an issue, i.e.  install_mysql.sh, install_apache.sh, install_php.sh

[root@jc-dell cacti-install]# dos2unix install_apache.sh
  1. When running the dos2unix command, the permissions will be changed for the install script so you will need to revert the permissions back to how they were before you ran the command. 

[root@jc-dell cacti-install]# chmod 775 install_apache.sh
  1. Run the install script 

 

Product List
Dialogic Integrated Media Gateways

 

Glossary of Acronyms / Terms

Cacti - 3rd-party, open source network graphing software that can optionally be installed with and used with Dialogic Gate Control Element Management System (GCEMS) 

Return to Documentation Home I Return to Sangoma Support