Member
Member
FANLESS   2006-02-21, 07:33
#1

I am trying to set this up on my Mac running Apache with PHP5. I put everything a folder called zenphoto but when I go to http://www.gotdangit.com/zenphoto/zen/setup.php the page is blank. I can't get past step 2 in the install instructions, so I must be making a major/stupid mistake, but I can't see what it is. I know my server is working... I have both wordpress and gallery running just fine, but my setup.php won't show anything!
I am seeing this error in my httpd error log:
[Tue Feb 21 01:12:31 2006] [error] PHP Parse error: syntax error, unexpected $end in /Library/WebServer/Documents/zenphoto/zen/setup.php on line 140
Are there more instructions other than "get the files on the server and go to setup.php" that I'm missing? What am I doing wrong this early in the installation?

Developer
Developer
trisweb   2006-02-22, 23:37
#2

No, that should work..... did you try redownloading and reextracting? That kind of sounds like an incomplete or corrupt file...

Member
Member
FANLESS   2006-02-23, 03:54
#3

Yes, I did. The first time I had the tar.gz version and it would create a folder named "1.0b" and it contained 8 items.
Then I downloaded the .zip version, and when unpacked it created a folder named "zenphoto-1" which had the same 8 files/folders. Same results with both. For the sake of disparity, I downloaded the files again with Firefox instead of Safari, and I still get the same thing.
I have a feeling the problem lies in my build of php5 but I only say that because I was able to get zenphoto to work just fine on my Mac at work and as near as I can tell the only difference is that my Mac at work has php 4.3.11 and my problem Mac has 5.1.2. I'm just not smrt enough to know how to trouble shoot this. And like I said, both wordpress and gallery are running just fine on this Mac.

Developer
Developer
trisweb   2006-02-23, 05:27
#4

I develop with PHP5, so it's not that specifically. Could be something with the build of it you have, sure. D

Line 140 in setup.php is the end of the file.

Do you have php's "short tags" feature enabled?

Member
Member
FANLESS   2006-02-23, 07:07
#5

According to this "short_open_tag" is off.
This is frustrating because I know it's going to be one little thing that needs to be changed and then it will work beautifully. I just can't figure out what the one little thing is.

One more thing to note, and I can't imagine it would be important this early in the install, but, I had to make a change in my php.ini file to get mysql to work. I had to change the MYSQL_SOCKET to /tmp/mysql.sock but I haven't even gotten to the stage where I fill in my db details.

Developer
Developer
trisweb   2006-02-24, 11:22
#6

That's it then-- short_open_tag needs to be on unfortunately.

You can do a find-and-replace (without the quotes):

Replace `'

Member
Member
FANLESS   2006-02-25, 01:35
#7

Naturally, you're right! It works now. Thank you very much for the help!

Member
Member
qtrc   2006-04-15, 20:39
#8

Just in case anyone gets the following error:

Parse error: syntax error, unexpected $end in C:\http\www\gallery\zen\sortable.php on line 202

By turning "On" "short_open_tag", my windows setup was also able to get zenphot to work properly. I'm running wamp5_1.6.1 services.

Thanks Trisweb!!!

Developer
Developer
trisweb   2006-04-16, 05:54
#9

[b]qtrc[/b] - (if you come back) what version are you using? Version 1.0.2b shouldn't require short_open_tag anymore; just want to make sure you still don't have a problem with it if you upgraded.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.