Topic: Installation Loop on subfolder

Ok I have been trying to install GetSimple in a folder of webroot but I keep getting Redirect Loop.
I am stepping through the admin/install.php

Line 37
if ($PWD != '') { header('Location: index.php'); }

but ....its not empty it then goes to the index.php where it determines the site needs to be installed....thus the loop.

when I do var_dump($PWD) the install screen appears and this spits out

string(13) "/home/maurice"

something screwing in the data mapping?

Re: Installation Loop on subfolder

Then the password is not empty.
Re download and install

Re: Installation Loop on subfolder

You know, in bash programming, $PWD stands for the current working directory (when we built our own version of the shell this was a bitch)  I wonder if PHP is somehow misenterpreting that?  Are you installing in /home/maurice ?

------
I can't design for shit but I can code the shit out of your design

Re: Installation Loop on subfolder

no.
Install path is
/opt/lampp/htdocs/xampp/GetSimple.

But you got it Derek ....

I changed $PWD to $Password and it is working...

I am running Xammp on Ubuntu 9.04

I think should change the convention.

Re: Installation Loop on subfolder

Ahh, but I bet /home/maurice is your home folder, which is where it might be grabbing permissions?  Either way, glad you got it working!

------
I can't design for shit but I can code the shit out of your design

Re: Installation Loop on subfolder

Correct.

Strange....though I wouldnt have thought that php can execute bash unless it is specifically called....

Re: Installation Loop on subfolder

The only thing I can think of is if you have php5-cli installed - which executes system commands like that.  php5-cli essentially turns PHP into a language like C that can interact with the system.

Just out of curiosity, why are you running XAMPP and not just doing a tasksel install of a LAMP server?

And I let Chris know about this thread, I am sure we will see some sort of change in 1.4 or 1.5.

------
I can't design for shit but I can code the shit out of your design

Re: Installation Loop on subfolder

Wow Derek - That is great. I will make this change, and I will release the new version. I didnt think that PHP could execute bash commands either...

I should have known better - I work on a UNIX server everyday, and know exactly what pwd does. Thanks!

- Chris
Thanks for using GetSimple! | GetSimple Poll | My GetSimple 2.0 Plugins

Re: Installation Loop on subfolder

This will be in version 1.4 (out today sometime) - I love the 'find and replace in folder' option.

- Chris
Thanks for using GetSimple! | GetSimple Poll | My GetSimple 2.0 Plugins

Re: Installation Loop on subfolder

ccagle8 wrote:

This will be in version 1.4 (out today sometime) - I love the 'find and replace in folder' option.

What IDE are you using to code?

------
I can't design for shit but I can code the shit out of your design

Re: Installation Loop on subfolder

Ultraedit. I use it at work, and had to buy it for home b/c i love it so much!

- Chris
Thanks for using GetSimple! | GetSimple Poll | My GetSimple 2.0 Plugins

Re: Installation Loop on subfolder

Stupid windows :P  I develop primarily on my Mac, can't find a good XML parser that I like yet

------
I can't design for shit but I can code the shit out of your design

Re: Installation Loop on subfolder

I use netbeans as my IDE,

I use apache friends xampp -> out of the box i have everything....Easy to use no mess...