Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok i am having a problem with apache and permissions. well i moved the home dir of apache to my 80gb hdd. /hdb1/hdb1/html/
and well if u go to http://dkc1.dnsq.org/notshow/ it will say permissions denyed but if u go to http://dkc1.dnsq.org/notshow/smaller.jpg the picture will show fine but its in the dir notshow.
p.s will i have a problem with hosting .php sites or mysql stuff sense i moved the home dir to a diffrent hard drive.?
What's the permissions of notshow ? Do you have an index file in there ? If not, you probably just have directory indexing turned off so poeple cant see the directory listing.
Yeah, so what Tricky is saying is you have no index file. You need to create something like index.html and this will be the default page the users see when they go to yoursite.com.
For example, when you go to www.masterc.no-ip.org all you see in the url is that, however it's bring up my index.html
Originally posted by trickykid Thank you for clarifying that MasterC.
Like I mentioned before, if you don't have a index.html file, it won't display a directory listing of files that you have in that directory.
You most likely have directory indexing or listing disabled. I believe this option is under the <directory> section of your httpd.conf file.
umm i cant seem to find the httpd.conf file i looked in /etc but couldnt find it. only one i found was in /etc/http/ conf or someting like that. but none of them would show up in kate or pico. i was su.
i guess i found it.
ummmm i cant have listening disabled (or do i) bc when i move the dir back to the old one or default dir /var/www/html it works purfectly fine. but when i change it to /hdb1/hdb1/html and restart the service it stops working. when its in /var/www/html/ works just how li want it to work.
Looking through my config, I would think these sections might be of some help (I'm running Apache 1.3, 2.0 might be different..):
Code:
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
Code:
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
Ok, just lookin over your config file, try using full path to your DocumentRoot:
Code:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "hdb1/hdb1/html"
So if it's /mnt/hdb1/hdb1/html for the path (which is a VERY odd path btw..) then don't forget the first /
Then restart apache:
apachectl restart
Cool
<further down as well, edit the same thing, add the full path, including />
Originally posted by MasterC Ok, just lookin over your config file, try using full path to your DocumentRoot:
Code:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "hdb1/hdb1/html"
So if it's /mnt/hdb1/hdb1/html for the path (which is a VERY odd path btw..) then don't forget the first /
Then restart apache:
apachectl restart
Cool
<further down as well, edit the same thing, add the full path, including />
nope didnt do a thing.
only thing diffrent i did was restart the httpd server threw the gui.
p.s the dir is there bc of the partitions im sure u knew that. :P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.