Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open file: /etc/apache2/conf.d/* #3

Open
scor opened this issue Mar 6, 2012 · 5 comments
Open

Unable to open file: /etc/apache2/conf.d/* #3

scor opened this issue Mar 6, 2012 · 5 comments

Comments

@scor
Copy link

scor commented Mar 6, 2012

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

@kdckrs
Copy link

kdckrs commented Aug 27, 2012

Same issue here running debian:

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.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

@fortiko
Copy link

fortiko commented Sep 6, 2012

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 .= "*";
#        }

@kisst
Copy link

kisst commented Apr 29, 2013

@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

@pierrenel
Copy link

Thanks @fortiko !

@bmurtagh
Copy link

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.

gustavmaskowitz added a commit that referenced this issue Feb 3, 2014
Debian directory globbing for issue #3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants