Open scor opened 12 years ago
Same issue here running debian:
perl apachebuddy.pl ########################################################################
######################################################################## Gathering information... We are checking the service running on port 80 The process listening on port 80 is /usr/sbin/apache2 The process running on port 80 is Apache/2.2.16 (Debian) Apache has been running 0d 0h 10m 48s The full path to the Apache config file is: /etc/apache2/apache2.conf Apache is using prefork model
Examining your Apache configuration... Uncaught exception from user code: Unable to open file: /etc/apache2/conf.d/* at apachebuddy.pl line 91 main::find_included_files('ARRAY(0x1c641d0)', 'ARRAY(0x1c63030)', '/etc/apache2') called at apachebuddy.pl line 65 main::build_config_array('/etc/apache2/apache2.conf', '/etc/apache2') called at apachebuddy.pl line 1001
$ uname -a Linux myserver 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux
Thats because of lines 84-88 (see below). Removing/commenting them makes apachebuddy.pl work as expected.
# if(-d $file && $file !~ /\*$/) {
# print "VERBOSE: Adding glob to ".$file.", is a directory\n" if $main::VERBOSE;
# $file .= "/" if($file !~ /\/$/);
# $file .= "*";
# }
@fortiko maybe it's worst to add as a small patch like "If ( not debian based ) " into the line 83 and close this in the line 89
Thanks @fortiko !
I get a similar error on a CentOS machine running cPanel. Had to commented out all of the extra Includes in order for the script to run.
Running apachebuddy.pl on an ubuntu server on rackspace:
$ sudo perl apachebuddy.pl
Apache Buddy v 0.3
Gathering information... We are checking the service running on port 80 The process listening on port 80 is /usr/sbin/apache2 The process running on port 80 is Apache/2.2.14 (Ubuntu) Apache has been running 0d 0h 06m 09s The full path to the Apache config file is: /etc/apache2/apache2.conf Apache is using prefork model
Examining your Apache configuration... Uncaught exception from user code: Unable to open file: /etc/apache2/conf.d/* at apachebuddy.pl line 91 main::find_included_files('ARRAY(0x284d0c0)', 'ARRAY(0x284bf20)', 0) called at apachebuddy.pl line 65 main::build_config_array('/etc/apache2/apache2.conf', 0) called at apachebuddy.pl line 1001
$ uname -a Linux myserver 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010 x86_64 GNU/Linux