Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Connect??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have apache and have setup my dns server but I was wondering how I connect with my apache web server through unix. I keep readin that I need to set permissions in unix but I don't kno how to connect to my server with unix. If someone can tell me how to set permessions without unix or how to connect to my server with telnet (winXP) that would be very helpful. Thanx.
 
Hi mate,

What type of server is your site hosted on?

Is it on your local machine or someone elses?

You do not connect with unix, unix is a type of operating system (Like windows is, except better.)

Since you do not know the basics I suggest you get yourself a ftp program. Go to and search for ftp client. (Do not use a ftp server, these are totally different)

One ftp client that I use is CUTE FTP. Type in your details of your site then upload your files to the correct directory. When you want to change permissins, right click on the file and use the chmod function, this will do it for you.

If you are hosted on a windows machine, you don`t need to bother about the above so post again and I will help you with that...

Hope this helps Wullie

 

To connect to your server try: Putty.exe

For ftp that is secure try: psftp.exe


Cute FTP and other windows ftp clients send login and password information over the internet as plain text if I remember correctly. //**********************************//
Mithrilhall a.k.a. Shadowblades
//**********************************//
 
Mithrilhall,

For someone who doesn`t know what permissions are or how to change them I would recommend a easy to use ftp client..

Putty is useful if you are experienced but I would never recommend it to a beginner.

I personally still think cuteftp etc would be the best option in this case...

Hope this helps Wullie

 
You're correct. That's what I started on and figured most people do, my bad. If he's not interested in security then he should use something like Cute ftp (I would try WS_ftp - I think it's easier than Cute.)

TAuZlNs, if you're actually on a Unix or Linux computer and you're interested in learning permissions type "man chmod" without the quotes at the shell (command prompt) and you'll get a basic definition of how permissions work. Or do a search on for linux file permissions.

//**********************************//
Mithrilhall a.k.a. Shadowblades
//**********************************//
 
Well my problem is that I can't even access my web server through ftp. I am running the webserver off my local computer (Windows XP) but I don't want other people to have access to certain files in my root directory. How would I set these permissions?
 
Hi mate,

If the server is on your local computer then you do not need any ftp software, ftp is used to connect to a remote machine.

I am not sure what you are asking here though..

You have files in your root that you do not want others to access.. Why not remove them then? Put them somewhere else and password protect the directory with htaccess.

What type of files are they?

Post more detailed info and we will be able to help more..

Hope this helps Wullie

 
I am running a php script and some files on my server contain passwords that I don't what to be accessible. How do I protect it with htaccess within windows?
 
Hi mate,

Type the following into notepad:

AuthUserFile /AuthGroupFile /dev/null
AuthName Restricted Area
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>


select save as, and save as .htaccess , make sure that you have selected all files in the save as screen or it will save it as a text file.. If you cannot get it to work without a filename, then call the file something like test.htaccess

Now, in a new folder, can be virtually anywhere on your machine, create a new file the same way as above but call this .htpasswd and in this file put a username and password in the following format:

username:password

Alter the top line of the htaccess to point to the path on your machine where the htpasswd is and make sure that if you called it test.htpasswd then you insert that, then place the htaccess in the directory you want to restrict.

Now open your browser and enter the directory that the htaccess is in.

You should see a password prompt..

If you do, try your password you typed eariler.

If not let me know what happened and also any error messages you got on screen and also in your error log..

Hope this helps Wullie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top