I'm having some problems getting CentOS to serve up my Smokeping pages ( http://oss.oetiker.ch/smokeping/) However, I'm having problems getting the pages to serve up correctly. Here is a quick run down of what I've done. (1) wget and untar to /usr/local/smokeping (2) chown -R root:root /usr/local/smokeping (3) modifying to the following files to reflect my environment (not sure if all my steps here were good) /usr/local/smokeping/bin/smokeping /usr/local/smokepoing/htdocs/smokeping.cfg (4) ln -s /usr/local/smokeping/htdocs /var/www/html/smokeping When I go to "www.mybox.com/smokeping", all I get is a list of files, not the webpage I would expect to get. What might I be doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080227/d419dcc5/attachment.html>
> I'm having some problems getting CentOS to serve up my Smokeping pages ( > http://oss.oetiker.ch/smokeping/) > However, I'm having problems getting the pages to serve up correctly. > > Here is a quick run down of what I've done. > > (1) wget and untar to /usr/local/smokeping > (2) chown -R root:root /usr/local/smokeping > (3) modifying to the following files to reflect my environment > > (not sure if all my steps here were good) > > /usr/local/smokeping/bin/smokeping > /usr/local/smokepoing/htdocs/smokeping.cfg > > (4) ln -s /usr/local/smokeping/htdocs /var/www/html/smokeping > > When I go to "www.mybox.com/smokeping", all I get is a list of files, not > the webpage I would expect to get. > > What might I be doing wrong?If you are getting a list of files, I have to wonder if you have a DirectoryIndex set .. and if so .. what the filenames are in DirectoryIndex. Barry
Rogelio wrote:> I'm having some problems getting CentOS to serve up my Smokeping pages > (http://oss.oetiker.ch/smokeping/) > > However, I'm having problems getting the pages to serve up correctly. > > Here is a quick run down of what I've done. > > (1) wget and untar to /usr/local/smokeping > (2) chown -R root:root /usr/local/smokeping > (3) modifying to the following files to reflect my environment > > (not sure if all my steps here were good) > > /usr/local/smokeping/bin/smokeping > /usr/local/smokepoing/htdocs/smokeping.cfg > > (4) ln -s /usr/local/smokeping/htdocs /var/www/html/smokeping > > When I go to "www.mybox.com/smokeping > <http://www.mybox.com/smokeping>", all I get is a list of files, not > the webpage I would expect to get. > > What might I be doing wrong?apache isn't real fond of symbolic links unless you add Directory primitives for the real directory. actually, I'd blow off the symlink entirely, and instead use something like... /etc/httpd/conf.d/smokering.conf: Alias /smokering/ /usr/local/smokering/htdocs/ <Directory /usr/local/smokering/htdocs> AllowOverride All Options MultiViews All </Directory> (adjusting the privileges as needed inside that <Directory> block...)