google-code-backups / lifepress

Automatically exported from code.google.com/p/lifepress
Other
0 stars 0 forks source link

Install error on XAMPP, LightTPD, etc. #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. hg clone repo url
2. edit {config,database}-sample.php and save it as {config,database}.php
3. go to http://life.domain.tld/

What is the expected output? What do you see instead?
not a error page. Warning: require(BASEPATHlibraries/ExceptionsEXT)
[function.require]:
failed to open stream: No such file or directory in /var/www/
life.domain.tld/hg/trunk/system/application/libraries/simplepie.php  on
line 727 

What version of the product are you using? On what operating system?
lifepress 20:0db317894313 and PHP 5.3.1-5. debian testing
using lighttpd

Please provide any additional information below.

attach my config.php file.

Original issue reported on code.google.com by batjohan on 11 Mar 2010 at 10:23

Attachments:

GoogleCodeExporter commented 8 years ago
Lifepress requires mod_rewrite to function properly (or at all), this is 
normally 
accomplished by a .htaccess rule, something like:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

The equivalent rules for lightly would be something like:

url.rewrite = (
"^/(.+)/?$" => "/index.php/$1"
)

Hopefully that helps.

Original comment by killpack99 on 11 Mar 2010 at 2:26

GoogleCodeExporter commented 8 years ago
it does not help with that rewrite rule..

Original comment by batjohan on 11 Mar 2010 at 3:31

GoogleCodeExporter commented 8 years ago
I noticed that you have the folling in your config.php

    $config['base_url'] = "http://life.domain.tld/";

But in the issue the warning states a problem in this file:

    /var/www/
life.domain.tld/hg/trunk/system/application/libraries/simplepie.php

Can you check if you really put Lifepress into 
*/var/www/life.domain.tld/hg/trunk/...*

Especially the "hg/trunk/" part of the directory looks suspicious to me.

Original comment by carsten....@gmail.com on 12 Mar 2010 at 7:00

GoogleCodeExporter commented 8 years ago
johan@spaam:/var/www/life.domain.tld/hg/trunk/system/application/libraries$ ls
auth.php  index.html  markdown.php  MY_Controller.php  page.php  simplepie.php 
sweetcron_item.php  sweetcron.php

my vhost in lighty with my rewrite thing. it did work with sweetcron so it no 
problem
with that. i got the same error with and without that magnet script. 
$HTTP["host"] == "life.domain.tld" {
    server.document-root = "/var/www/life.domain.tld/hg/trunk/"
    accesslog.filename = logpath + "life.domain.tld.access.log"
    magnet.attract-physical-path-to = ( "/etc/lighttpd/life.lua" )
}

Original comment by batjohan on 12 Mar 2010 at 10:08

GoogleCodeExporter commented 8 years ago
That revision ffc7cf08be3d3c5c0e6ba8a29c924014eb0205bc is the update to 
CodeIgniter 
again. Maybe that's causing issues because the simplepie.php is somehow changed 
and 
broke the functionality, I've diff'ed the files and there is no change to 
simplepie.php.

I think the changes coming from CodeIgniter should be reviewed again, maybe 
there is 
more missing...

Original comment by carsten....@gmail.com on 12 Mar 2010 at 10:36

GoogleCodeExporter commented 8 years ago
Ah, I found the comment I made to CodeIgniter changes: 
http://code.google.com/p/lifepress/source/browse/trunk/system/application/config
/routes
.php?
spec=svnffc7cf08be3d3c5c0e6ba8a29c924014eb0205bc&r=ffc7cf08be3d3c5c0e6ba8a29c924
014eb02
05bc#43

This was causing some trouble, maybe this is the source of more errors.

Original comment by carsten....@gmail.com on 12 Mar 2010 at 10:38

GoogleCodeExporter commented 8 years ago
if i changed $route['default_controller'] = "home";  to welcome in routes.php i 
got a
404 error from the php script.

"
404 Page Not Found

The page you requested was not found.
"

so there was a problem with the CodeIgniter update?

Original comment by batjohan on 12 Mar 2010 at 10:54

GoogleCodeExporter commented 8 years ago
Some settings were lost during the update (as stated in my comment), but were 
fixed 
afterwards. I'm not entirely sure now that there isn't more missing.

Original comment by carsten....@gmail.com on 12 Mar 2010 at 11:06

GoogleCodeExporter commented 8 years ago
ok.  so any tip or something how i can fix this?  
maybe it will go faster to fix this if we talk on irc?
just send a msg to spaam on freenode.

Original comment by batjohan on 13 Mar 2010 at 10:16

GoogleCodeExporter commented 8 years ago
its so weird that install script works and no other pages...

Original comment by batjohan on 14 Mar 2010 at 10:53

GoogleCodeExporter commented 8 years ago
if i have
class simplepie {
}
in simplepie.php  the page loads... so there are something wrong when it loads
simplepie.php...

Original comment by batjohan on 14 Mar 2010 at 9:55

GoogleCodeExporter commented 8 years ago
I find this very strange because I can install Lifepress on Ubuntu with Apache, 
no 
problem, no errors, etc.

In regards to the missing welcome route, welcome.php isn't used in Lifepress 
and as 
such the route doesn't exist.

Original comment by killpack99 on 14 Mar 2010 at 10:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by killpack99 on 14 Mar 2010 at 11:44

GoogleCodeExporter commented 8 years ago
Issue 18 has been merged into this issue.

Original comment by killpack99 on 14 Mar 2010 at 11:44

GoogleCodeExporter commented 8 years ago
BTW SweetCron and CodeIgniter base (1.7.2) works perfectly.

Original comment by djbl...@gmail.com on 15 Mar 2010 at 12:05

GoogleCodeExporter commented 8 years ago

Original comment by killpack99 on 15 Mar 2010 at 1:58

GoogleCodeExporter commented 8 years ago
On MAMP works great... (Its similar to XAMPP) also for Mac OS.
Lets start developing

Original comment by djbl...@gmail.com on 16 Mar 2010 at 3:06

GoogleCodeExporter commented 8 years ago
Sounds good, but before we can close this bug I'd like to figure out what the 
problem 
is with LightTPD and XAMPP that is preventing Lifepress from functioning 
properly.

So it isn't an OS X specific bug then?

Original comment by killpack99 on 16 Mar 2010 at 5:43

GoogleCodeExporter commented 8 years ago
this problem is soo weird. four days ago. without doing anything. the site 
worked. i
did add some rss feeds. add the cron update thing. yesterday it stop working. 
dunno
what it can be..

Original comment by batjohan on 18 Mar 2010 at 3:12

GoogleCodeExporter commented 8 years ago
No news?

Original comment by djbl...@gmail.com on 25 Mar 2010 at 7:12

GoogleCodeExporter commented 8 years ago
I'm afraid I've been busy of late, but I'll be looking into the issue as soon 
as time 
permits.

Original comment by killpack99 on 25 Mar 2010 at 8:13

GoogleCodeExporter commented 8 years ago
I ran into the exact same issue with MAMP 1.9 and Mac OS X 10.6.3. I don't know 
yet what caused it, but my 
error message is

[10-May-2010 20:36:14] PHP Warning:  require(BASEPATHlibraries/ExceptionsEXT) 
[<a 
href='function.require'>function.require</a>]: failed to open stream: No such 
file or directory in 
/PATH/TO/lifepress/system/application/libraries/Simplepie.php on line 727

It's hard to guess where the error lies. Simplepie.php Line 727 is not the 
cause, but Lifepress breaks at that 
point. Now I have to figure out where "BASEPATHlibraries/ExceptionsEXT" is used.

Original comment by carsten....@gmail.com on 10 May 2010 at 6:50

GoogleCodeExporter commented 8 years ago
Crazy, after opening some files and reloading the pages in the browser (I use 
Chrome) it works. I didn't change 
something, just added a short 

  var_dump(BASEPATH);

to my /system/index.php to have an output. I reloaded the homepage and it 
displayed an error message, but the 
whole page too. So I removed that var_dump and now it works. :-(

Original comment by carsten....@gmail.com on 10 May 2010 at 7:07

GoogleCodeExporter commented 8 years ago
And today it stops working again. This is really an annoying thing. I'm on 
MAMP, Mac OS X 10.6.3, Chrome 
again and it simply cannot load my index.php. This is one of the annoying bugs 
that keep me from 
developing. :-(

This is my .htaccess

Options +FollowSymLinks
<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /LIFEPRESS
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

This is my config base_url

$config['base_url'] = "http://localhost:8888/LIFEPRESS/";

Original comment by carsten....@gmail.com on 13 May 2010 at 6:31

GoogleCodeExporter commented 8 years ago
can it be something with codeigniter?

Original comment by batjohan on 14 May 2010 at 10:40

GoogleCodeExporter commented 8 years ago
I think so... I have to review the changes from the Code Igniter update again.

Original comment by carsten....@gmail.com on 14 May 2010 at 10:42

GoogleCodeExporter commented 8 years ago
This may have something to do with capitalization. A month or so ago I started 
a re-write my music blog in CodeIgniter and I did some of my work on OS X as 
some on Ubuntu and it turns out that OS X's file system is case-insensitive 
while ext(2|3|4) are the opposite. While I don't know if this is causing this 
problem in particular I do remember having massive breakage every time I 
switched from OS X to Linux.

Original comment by killpack99 on 11 Aug 2010 at 3:18