LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2006, 12:49 PM   #1
supasta
LQ Newbie
 
Registered: Dec 2004
Location: Southeast, US
Distribution: FC
Posts: 11

Rep: Reputation: 0
Apache: Won't Send Some Files 403 Errors and More


I've got Apache 2, MySQL 4, and php 5 upgraded on my server, but now Apache will only send files in the very of the level of the file system. Also, when its send any image I just get the name of the image in the browser. You can see the problem site at example of what I'm talking about at campusword dot com

I've struggled with this for about 15 hours and read everything I could find on the subject tod
I would post the conf files below, but it won't let me as I've not had 5 post.

I've got virtual hosts setup and the domains are going to the files. I've also got mime_magic_mod installed and on. I've got it pointing to the mime.types file in the conf folder.

Thanks for any help,
Chris
 
Old 01-16-2006, 01:06 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Do those images exist?

I'm running get requests and I keep getting 404 errors.
 
Old 01-16-2006, 01:27 PM   #3
supasta
LQ Newbie
 
Registered: Dec 2004
Location: Southeast, US
Distribution: FC
Posts: 11

Original Poster
Rep: Reputation: 0
On the filesystem they exsist

The files exsist on the filesystem within the top-level folder that apache serves. Apache just doesn't look for the files apparently.

As soon as I get 5 post I'll post the httpd.conf and httpd-vhosts.conf
 
Old 01-16-2006, 02:12 PM   #4
supasta
LQ Newbie
 
Registered: Dec 2004
Location: Southeast, US
Distribution: FC
Posts: 11

Original Poster
Rep: Reputation: 0
Somethings to Help in the Search

The following is excerpts from the httpd.conf and httpd-vhosts.conf. Replace " dot " with a ., and " colon " with a :.

Quote:
The following is excerpts from the httpd dot conf and httpd-vhosts dot conf

Quote:
<Directory "/">
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of colon
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you dot
#
# The Options directive is both complicated and important dot Please see
# http colon //httpd dot apache dot org/docs-2 dot 0/mod/core dot html#options
# for more information dot
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in dot htaccess files dot
# It can be "All", "None", or any combination of the keywords colon
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server dot
#
Order allow,deny
Allow from all
</Directory>

NameVirtualHost 64 dot 136 dot 59 dot 124 colon 80
<VirtualHost 64 dot 136 dot 59 dot 124 colon 80>
#<Directory /home/webadmin/campusword dot com/html>
# Options Indexes Includes FollowSymLinks
# AllowOverride None
# Order allow,deny
# Allow from all
#</Directory>
#ScriptAlias /cgi-bin/awstats /var/www/cgi-bin/awstats
#Alias /awstats /var/www/html/awstats
#ScriptAlias /mail /var/www/cgi-bin/openwebmail/openwebmail dot pl
#ScriptAlias /cgi-bin/openwebmail /var/www/cgi-bin/openwebmail
#Alias /openwebmail /var/www/html/openwebmail
#Alias /myadmin /var/www/html/myadmin
#ScriptAlias /mail /var/www/cgi-bin/openwebmail/openwebmail dot pl
#ScriptAlias /cgi-bin/openwebmail /var/www/cgi-bin/openwebmail
#Alias /openwebmail /var/www/html/openwebmail
ServerName campusword dot com
DocumentRoot /home/webadmin/campusword dot com/html
#SuexecUserGroup webadmin webadmin
#ServerAlias "www dot campusword dot com" "ftp dot campusword dot com" "mail dot campusword dot com"
ServerAdmin "webadmin@campusword dot com"
#ScriptAlias "/cgi-bin/" "/home/webadmin/campusword dot com/cgi-bin/"
CustomLog "/home/webadmin/campusword dot com/access_log" "combined"
ErrorLog "/home/webadmin/campusword dot com/error_log"
</VirtualHost>
 
Old 01-16-2006, 02:40 PM   #5
supasta
LQ Newbie
 
Registered: Dec 2004
Location: Southeast, US
Distribution: FC
Posts: 11

Original Poster
Rep: Reputation: 0
Apache Configuration Settings

./configure --prefix=/usr/local/apache2 \
--enable-access=shared --enable-auth=shared \
--enable-auth_anon=shared --enable-auth_dbm=shared \
--enable-rewrite=shared --enable-speling=shared \
--enable-alias=shared --enable-auth=shared --enable-auth=shared \
--enable-cgi=shared --enable-dir=shared --enable-expires=shared \
--enable-mime_magic=shared --enable-mime=shared \
--enable-proxy=shared --enable-vhost_alias=shared \
--enable-suexec=shared --enable-access=shared --enable-auth \
--enable-auth_anon=shared --enable-auth_dbm=shared \
--enable-auth_digest=shared --enable-include=shared \
--enable-log_config=shared --enable-env=shared --enable-cern_meta=shared \
--enable-expires=shared --enable-headers=shared --enable-usertrack=shared \
--enable-unique_id=shared --enable-setenvif=shared --enable-dav=shared \
--enable-status=shared --enable-autoindex=shared --enable-asis=shared \
--enable-info=shared --enable-dav_fs=shared --enable-negotiation=shared \
--enable-imap=shared --enable-actions=shared
 
Old 01-17-2006, 12:28 AM   #6
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
did you check the apache error log?
 
Old 01-17-2006, 12:52 AM   #7
supasta
LQ Newbie
 
Registered: Dec 2004
Location: Southeast, US
Distribution: FC
Posts: 11

Original Poster
Rep: Reputation: 0
Yep. Going back to 1.3

I'm going back to 1.3. I think I found the problem: I used the new Apache 2.2 and it is not well documented on the web.

News ALERT: Apache 1.3 works!

Thanks for the help. I'm going to get a test of the other up and running next.

Good day,
Chris
 
Old 01-17-2006, 12:58 AM   #8
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
hmm... interesting... I have no problems running apache 2.2.0 and php5... although, i'm running a much simpler set up...
 
Old 01-17-2006, 01:04 AM   #9
supasta
LQ Newbie
 
Registered: Dec 2004
Location: Southeast, US
Distribution: FC
Posts: 11

Original Poster
Rep: Reputation: 0
What I mean by well documented is I couldn't just search and find like I can with 1.3. It took basically compile time for Apache 1.3: which is a lot less than 2.2.

Thanks again for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache, PHP5, and 403 errors pasmith@gmail.com Fedora 1 12-04-2005 04:27 PM
Apache: 403 error when putting hosted files in encrytped FS nv22nv Linux - Networking 6 08-01-2005 06:53 PM
403 errors from Apache belorion Linux - General 3 05-14-2005 12:59 PM
php files errors on apache - sometimes amimusa Debian 1 04-07-2005 12:52 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration