FreederTeam / Freeder

An easy-to-use free feed reader
Other
5 stars 1 forks source link

PhP error during installation #75

Closed Niols closed 9 years ago

Niols commented 9 years ago

Following the installations steps, I cloned the repo and created the submodule. After that I tried to install Freeder. I entered my username, my password, my password (again), clicked on « Install ! »… and nothing happened. I tried several times.

In my apache logs, i found the following line :

[Fri Oct 03 09:08:54 2014] [error] [client 129.199.100.124] PHP Warning: file_get_contents(/var/www/niols/rss/.htaccess): failed to open stream: No such file or directory in /var/www/niols/rss/inc/rewriting.class.php on line 122

I'll stay available for questions.

eliemichel commented 9 years ago

I tried to reproduce the exact steps you've tell me on Debian Wheezy too and have no problem…

Niols commented 9 years ago

I just re-did it :

www-data@s2:~/niols$ mkdir rss
www-data@s2:~/niols$ cd rss/
www-data@s2:~/niols/rss$ ls
www-data@s2:~/niols/rss$ git clone https://github.com/FreederTeam/Freeder .
Cloning into '.'...
remote: Counting objects: 2844, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 2844 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (2844/2844), 714.20 KiB | 454 KiB/s, done.
Resolving deltas: 100% (1822/1822), done.
www-data@s2:~/niols/rss$ git submodule init
Submodule 'doc/wiki' (https://github.com/Phyks/Freeder.wiki.git) registered for path 'doc/wiki'
www-data@s2:~/niols/rss$ git submodule update
Cloning into 'doc/wiki'...
remote: Counting objects: 190, done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 190 (delta 103), reused 10 (delta 5)
Receiving objects: 100% (190/190), 53.13 KiB, done.
Resolving deltas: 100% (103/103), done.
Submodule path 'doc/wiki': checked out '6c5c11bbf34827e3e6700787bbfe58f3ea89c6e9'
www-data@s2:~/niols/rss$ ls
ajax.php  api  constants.php  CONTRIBUTING.md  doc  inc  index.php  js.php  LICENSE login.php  logout.php  README.md  refresh.php  settings.php  tpl  unit

with the same error message:

[Fri Oct 03 09:32:54 2014] [error] [client 129.199.100.124] PHP Warning:  file_get_contents(/var/www/niols/rss/.htaccess): failed to open stream: No such file or directory in /var/www/niols/rss/inc/rewriting.class.php on line 122
eliemichel commented 9 years ago

That's curious since there actually is a test to check whether it is possible to write .htaccess. I will investigate.

Phyks commented 9 years ago

Perms problem ?

Niols commented 9 years ago

Tried it again, with the same problem, but no apache error message.

The .htaccess file seems to be correctly created btw:

www-data@s2:~/niols/rss$ ls -lah
total 216K
drwxr-xr-x 10 www-data www-data 4,0K oct.   3 10:02 .
[...]
-rw-r--r--  1 www-data www-data   89 oct.   3 10:01 .gitmodules
-rw-r--r--  1 www-data www-data  226 oct.   3 10:02 .htaccess
drwxr-xr-x  2 www-data www-data 4,0K oct.   3 10:01 inc
[...]
-rw-r--r--  1 www-data www-data  318 oct.   3 10:01 .vimrc
www-data@s2:~/niols/rss$ cat .htaccess 

# BEGIN Freeder generated
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase //
  RewriteRule ^tag/(.+)$ index.php?view=\$tag_$1
  RewriteRule ^feed/(.+)$ index.php?view=\$feed_$1
</IfModule>
# END Freeder generated

www-data@s2:~/niols/rss$ 
eliemichel commented 9 years ago

Ok so the problem was actually not related to .htacess (this was just a warning actually). Could you provide a copy of the resulting sqlite DB? And a list of files located in tmp/?

Niols commented 9 years ago

The data/ directory is empty, there's no sqlite db.
And still nothing in apache error logs (even with debug log level).

Phyks commented 9 years ago

@u4xmp : mkdir tmp data chown www-data:www-data tmp data

Working ? If yes, it's a perm problem we did not handle.

Niols commented 9 years ago

www-data created everything, so all directories are belonging to this user, even data and tmp

eliemichel commented 9 years ago

Ok, it seems that error messages have been disabled when adding modal boxes…

Niols commented 9 years ago

All js fils seems to be disabled, and lead to the same install page.

eliemichel commented 9 years ago

Ok, I though this problem was solved…