stephanediondev / readerself

Replaced by a new version
https://github.com/stephanediondev/feed
Other
158 stars 26 forks source link

Setup path not found #47

Closed MrDrMcCoy closed 10 years ago

MrDrMcCoy commented 10 years ago

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/
stephanediondev commented 10 years ago

Hi

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

MrDrMcCoy commented 10 years ago

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?

stephanediondev commented 10 years ago

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

Allowoverride All ...
MrDrMcCoy commented 10 years ago

That did it. User error. Thanks!