stephanediondev/readerself

Setup path not found

MrDrMcCoy opened this issue · 4 comments

Expected Behavior

Navigating to base URL will produce setup page per readme.

Actual Behavior

404 error: Not Found

The requested URL /setup was not found on this server.

Steps to Reproduce

  1. Install Ubuntu 14.04 with the following packages:
    • apache2 php5 php5-mysql php5-sqlite php5-curl php5-gd php5-imagick mariadb-server mariadb-client libapache2-mod-php5 git
  2. git clone readerself into /var/www
  3. Symlink readerself to /var/www/html
  4. Recursively change ownership of /var/www to www-data:www-data
  5. Set hostname, IP, DNS entries
  6. Create database 'readerself'
  7. Set database info in config to use root mysql credentials
  8. Navigate to http://readerself/

Hi

Did you enable mod rewrite with Apache ?
(command: a2enmod rewrite)

Apparently, I had forgotten that step. However, I am still having the same problem after enabling rewrite.

Steps taken

  1. a2enmod rewrite
  2. service apache2 restart
  3. deleted and recreated DB
  4. deleted and re-downloaded readerself with git
  5. added DB config to readerself
  6. removed symlink and renamed readerself directory to html, in case apache doesn't want to follow symlinks
  7. received same 404 error in browser

Are there any additional changes that need to be made in Apache to get this to work well?

It's necessary to have "Allowoverride All" in your VirtualHost configuration to use .htaccess file
(instead of "Allowoverride None")

<VirtualHost...>
<Directory /.../www>
Allowoverride All
...

That did it. User error. Thanks!