LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache: Won't Send Some Files 403 Errors and More (https://www.linuxquestions.org/questions/linux-networking-3/apache-wont-send-some-files-403-errors-and-more-404093/)

supasta 01-16-2006 12:49 PM

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

megaspaz 01-16-2006 01:06 PM

Do those images exist?

I'm running get requests and I keep getting 404 errors.

supasta 01-16-2006 01:27 PM

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

supasta 01-16-2006 02:12 PM

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>


supasta 01-16-2006 02:40 PM

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

pk21 01-17-2006 12:28 AM

did you check the apache error log?

supasta 01-17-2006 12:52 AM

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

megaspaz 01-17-2006 12:58 AM

hmm... interesting... I have no problems running apache 2.2.0 and php5... although, i'm running a much simpler set up...

supasta 01-17-2006 01:04 AM

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.


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