View previous topic :: View next topic |
Author |
Message |
slanter905 -
Joined: 26 Aug 2004 Posts: 20
|
Posted: Tue Sep 28, 2004 1:09 pm Post subject: photo gallery |
|
|
im wanting to run a photo gallery on my web site it tells me to password protect the admin directory how would i make it require a username and password to login to the admin directory?
here is the exact instruction is anyone can help me understand this mabey even give me some dummy directions even i could follow i offer my thanks in advance..
STEPS FOR NEW INSTALLATIONS:
1. Open up the "includes" directory, and open setup.php in a text editor.
Change USERNAME to be your MySQL username, change PASSWORD to be your
MySQL password, and change DATABASE to be the MySQL database name. Save
the file.
2. Copy or move all these files/folders to your Web server. If you already
have files or folders with these names, do NOT wipe out your previously-
existing work. I'm not liable for stupidity. Be careful.
3. Password-protect the admin directory (on Apache, use a .htaccess file).
If your Web hosting provider uses CPanel, you'll find that directory
protection is one of their nice point-and-click options. Remember what
username & password you entered. You'll need it for step 5.
4. Make sure that PHP can write to the images directory, default.css, and
prefs.php. If PHP runs under your own UID, then everything is set. If
not, a last resort would be something like this at a shell prompt:
chmod 777 ./images
chmod 666 ./includes/prefs.php
chmod 666 ./stylesheets/default.css
Note that this is less secure. If you have to do it this way, consider
moving the includes directory up out of the public HTML directory, and
revising the PHP files to point at the new location.
5. View the admin page in a Web browser, using your login from step 3. THIS
IS IMPORTANT. Whenever you view the admin page, it will test the database
connection, and make sure the tables are OK. You need to do this at least
once, to get the tables checked and setup properly. If you get error
messages, fix the problem and reload the admin page. It'll tell you when
everything is running OK. Look in the help.txt file if you get stuck.
6. Once logged in, you should have 3 options. Pick "Preferences"
and fill out the form. Then try the categories option and create some
categories. And finish by adding photos to the category. Ta da! |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Sep 28, 2004 1:14 pm Post subject: |
|
|
To password protect the admin area , add a User to the Abyss console and
go to access controle and add the path and put a check to allow that user
to be able to login. If this does not help , refer to the Abyss docs. |
|
Back to top |
|
 |
slanter905 -
Joined: 26 Aug 2004 Posts: 20
|
Posted: Tue Sep 28, 2004 11:20 pm Post subject: hmm |
|
|
i did that but when i goto (mysite.net/admin) it puts me right in and dont ask for a username and password? |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Sep 29, 2004 1:42 am Post subject: |
|
|
Can you post an example of the Username you created and the Access
Controle area from the Abyss Web Server console , you probably set it
up the wrong way. Please try and post these 2 screenshots. Thank You! |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|