sh ./configure.sh

krodd

Joined: 2002-12-29
Posts: 7
Posted: Sun, 2002-12-29 18:15

I'm new to PHP and would really appreciate any help you can provide in getting my gallery up and working.

Here's what I' done so far:
1. Downloaded zip file
2. Unzipped files locally using WinZip (on Windows XP)
3. FTP'd the gallery folder to my web server
4. Went to http://www.glitznyc.com/gallery and saw the Gallery Configuration Error page
5. Using shell access, got to my directory
6. Typed sh ./configure.sh and got the following error:

chmod: getting attributes of `setupr': No such file or directory
: command not found
./configure.sh: line 22: syntax error: unexpected end of file

I saw something in the FAQ about Windows putting extra bytes in the file, but can't figure out what would need to be deleted. Is there a better way of installing and configuring the gallery? Any help you can provide in getting me to the next step is greatly appreciated!!!!

 
krodd

Joined: 2002-12-29
Posts: 7
Posted: Sun, 2002-12-29 18:52

Some more info:

When I enter the following URL I get a Internal server error

http://www.glitznyc.com/gallery/setup/phpinfo.php

I really appreciate your help in getting me started. happy new year!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-12-29 19:17
Quote:
I saw something in the FAQ about Windows putting extra bytes in the file, but can't figure out what would need to be deleted. Is there a better way of installing and configuring the gallery? Any help you can provide in getting me to the next step is greatly appreciated!!!!

The problem is that you ftp'd the files to your server in ASCII mode. That seems like a good
idea on the surface of things, but in fact causes this aggravating file corruption. Try re-ftping the files to your server in binary mode and then the setup script should work.

Or, leave your windows box out of the equation. Delete your gallery from the server, then get a new copy using one of these three commands:

wget http://unc.dl.sourceforge.net/sourceforge/gallery/gallery-1.3.3.tar.gz
lwp-download http://unc.dl.sourceforge.net/sourceforge/gallery/gallery-1.3.3.tar.gz
lynx -dump http://unc.dl.sourceforge.net/sourceforge/gallery/gallery-1.3.3.tar.gz > gallery-1.3.3.tar.gz

your server probably has one of those options. Then do the unpacking process again and
your setup script won't have this problem.

Quote:
When I enter the following URL I get a Internal server error

Delete gallery/setup/.htaccess and this problem will go away.

 
krodd

Joined: 2002-12-29
Posts: 7
Posted: Sun, 2002-12-29 20:04

Thanks for getting back to me so quickly. I'm still having problems, though.

Quote:
<<
The problem is that you ftp'd the files to your server in ASCII mode. That seems like a good
idea on the surface of things, but in fact causes this aggravating file corruption. Try re-ftping the files to your server in binary mode and then the setup script should work.
>>
I tried this and get the same error.

<<
Or, leave your windows box out of the equation. Delete your gallery from the server, then get a new copy using one of these three commands:

wget http://unc.dl.sourceforge.net/sourceforge/gallery/gallery-1.3.3.tar.gz
lwp-download http://unc.dl.sourceforge.net/sourceforge/gallery/gallery-1.3.3.tar.gz
lynx -dump http://unc.dl.sourceforge.net/sourceforge/gallery/gallery-1.3.3.tar.gz > gallery-1.3.3.tar.gz

your server probably has one of those options. Then do the unpacking process again and
your setup script won't have this problem.
>>
I downloaded the .tar.gz file and did a binary FTP to the server. How do I unpack on the server without WinZip opening on the files on my local?

<<
Delete gallery/setup/.htaccess and this problem will go away.
>>
i don't see .htaccess in that directory.

I contacted my host asking about their PHP support and here's what they said:

--We currently offer PHP Version 4.1.2 in its CGI form. We do not support PHP
as an Apache module.--

With this set up can I run Gallery? They're a bit expensive so maybe it's worth switching hosts for something cheaper and easier to use. Let me know what you think. Thanks again for your help!!!!

 
krodd

Joined: 2002-12-29
Posts: 7
Posted: Sun, 2002-12-29 21:51

Wow . . after some Unix tutorials and a few hours, I got everything unpacked and ran the configure.sh. Only problem is my host has SafeMode turned on. Thanks again for such a quick response. Hopefully, I can get SafeMode turned off so I can get this up and running. Any advice you have would be great.

happy new year!

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Mon, 2002-12-30 18:36

You may have to use your own php-cgi binary to get around safe mode.
There is plenty of info to go on if you search the forum and read the FAQ
and userguides.