Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installation Loop on subfolder
#1
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?
Reply
#2
Then the password is not empty.
Re download and install
Reply
#3
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
Reply
#4
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.
Reply
#5
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
Reply
#6
Correct.

Strange....though I wouldnt have thought that php can execute bash unless it is specifically called....
Reply
#7
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
Reply
#8
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! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#9
This will be in version 1.4 (out today sometime) - I love the 'find and replace in folder' option.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#10
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
Reply
#11
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! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#12
Stupid windows Tongue 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
Reply
#13
I use netbeans as my IDE,

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




Users browsing this thread: 1 Guest(s)