config.php and .htaccess

Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Thu, 2002-10-10 18:47

Hi.

Being an expat in Oman, I am trying to keep up to date with the family back home using my site - http://www.andrewmogford.co.uk

I have photos I want to put up, and I have FTP'd Gallery up to my site. However, I get stuck with the instructions to create empty-file and then type put empty-file config.php. Where exactly do I type this? I use Smartftp.

I am sorry to be so thick - and I hope someone can help!

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2002-10-10 19:22

Create a blank text file, in notepad or something, and then upload it as config.php Make sure it's chmoded 0666!

I can't really help you with specific FTP programs, but I can do it for you, if you want...

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Fri, 2002-10-11 06:36

Thanks for your offer to do it for me, but I like to learn to do these things for myself - so next time I do one I wont have to bother people.

Two more questions for you if I may (sorry).

Firstly, if I create the files within notepad they become config.php.txt. Do I then need to change the extension?

Secondly, do I put the files in the Gallery directory on the server.

oh, and should it be 666 or 777? The instructions say 777.

I am on messenger (andrew_mogford@hotmail.com) if anyone can help out on that!

Thanks for the help so far!

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-10-11 12:23

1) When saving the file in notepad, on the drop-down box to select file type, there will be Text Document (*.txt) [or something like that] and All Files (*.*) Select All Files and then type config.php Yes, once uploaded to the server, the file will need a .php extension

2) Yes, the files for gallery should be on the server. Also create a directory to store album data. The gallery folder can just be chmoded 755, but the album directory needs 777.

The config.php and .htaccess files need to be chmoded 666 (though 777 will work the same way, it just makes them executable--the important thing is that the server can write to them)

I do not have MSN messenger, but only have AIM...if you have this, I'll email you my s/n (tell me if you have AIM first)

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Fri, 2002-10-11 12:45

Hi - thanks again for the help!

I use Trillian - and it seems to be compatible with AIM so yes I could chat on that. Let me try what you say first, then I may not need to bother you........

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Fri, 2002-10-11 12:55

OK - me again!

I've done what you said, and I now have the correct files in place - I think! :smile:

Anyway - I get a different screen when I click on gallery now - and it seems OK at that stage.

However, when I click on Configuration I get an internal server error 500......

Any ideas? :???:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-10-11 12:59

The error log is your friend. If you have access to it, please post any messages it logged...

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Fri, 2002-10-11 13:49

Error log? Not sure, mate.

All it says is :

Error 500 - Internal Server Error.

The server encountered an unexpected condition which prevented it from fulfilling the request.....

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Fri, 2002-10-11 19:35

Getting desperate now! :cry:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-10-11 19:44

Do you have access to the error log on your server? Obviously something isn't right, and the error log will have a more verbose message.

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Sat, 2002-10-12 02:39

I don't think I do - but I'm not sure. I'll give you FTP access if you want....

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Sat, 2002-10-12 17:40

:cry:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-10-12 18:48

Did you read FAQ C? Try removing setup/.htaccess as it indicates.

 
Gibb
Gibb's picture

Joined: 2002-10-10
Posts: 20
Posted: Sun, 2002-10-13 13:38

My apologies Bharat - that solved the problem and please rest assured that I will donate to the cause when it is up and running. There is one more small problem which I have posted in a new thread. I hope you don't mind and thanks again!