Results 1 to 3 of 3

Thread: Apache Omits a Directory

  1. #1
    Join Date
    Aug 2007
    Beans
    17

    Apache Omits a Directory

    I'm trying to get my test server set up to work with zend on apache, but I hit this weird bug. I ran zf.sh create project zftutorial and got the necessary directories set up, but for some reason, when I run
    Code:
    http://localhost/zftutorial/
    It only displays three of the four directories. Furthermore, the directory it refuses to display is the 'Public' directory! The directory appears in the list when I run it on my terminal:

    Code:
    chris@chris-laptop:/etc/apache2$ cd /var/www/zftutorial
    chris@chris-laptop:/var/www/zftutorial$ ls
    application  library  public  tests
    If it helps, here's my apache sites-available default file:

    Code:
    <VirtualHost *:80>
    	ServerAdmin webmaster@localhost
    
    	DocumentRoot /var/www
    	<Directory />
    		Options FollowSymLinks
    		AllowOverride All
    	</Directory>
    	<Directory /var/www/>
    		Options Indexes FollowSymLinks MultiViews
    		AllowOverride All
    		Order allow,deny
    		allow from all
    	</Directory>
    
    	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    	<Directory "/usr/lib/cgi-bin">
    		AllowOverride None
    		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    		Order allow,deny
    		Allow from all
    	</Directory>
    
    	ErrorLog /var/log/apache2/error.log
    
    	# Possible values include: debug, info, notice, warn, error, crit,
    	# alert, emerg.
    	LogLevel warn
    
    	CustomLog /var/log/apache2/access.log combined
    
        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    
    </VirtualHost>

  2. #2
    Join Date
    Aug 2010
    Location
    Canada
    Beans
    151
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Apache Omits a Directory

    What are the permissions on those directories? Can Apache see them? They won't show up if Apache can't get into them.

  3. #3
    Join Date
    Aug 2007
    Beans
    17

    Re: Apache Omits a Directory

    After:

    Code:
    chmod -R 777 /var/www/zftutorial/public
    Apache still doesn't find the directory. I don't understand why it finds the other three directories, but not public... Could it have to do with .htaccess? I don't really know how to read those files, but here's the contents of the one generated by Zend in ./public/ if it helps at all:

    SetEnv APPLICATION_ENV development

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •