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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chmod on local server?

Status
Not open for further replies.

snobba

Programmer
Mar 8, 2004
15
SE
Hi,

I hope that this is the right place to ask this question. Let me explain my problem.

What I want: I am having a local apache server on my computer so I can design my webpages and try them out on with a database and everything. I reach this files on
Problem: Now I want to change the chmod on a file on my local server. Normaly this is not a problem if it is a 'real' server then I just have to tick in for example ftp://server.com...and so on...And change it...But what do I do with the localhost?

I have FileZilla and tried to connect with the addresses: localhost, ftp://localhost, nothing works?

I got an suggestion that I should go into a shell(ms-dos command?) and there cd to the path I and then chmod the file/folder..But when I am doing a 'chmod 777 file.php' I get a 'bad command or bad file'-error???

Help, anyone??

Thanks,

Greetings from Hendrik - Sweden
 
in windows XP (NTFS), you can right-click the file, select 'properties', select the 'security' tab, and give permission for 'Everyone' to access the file.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Thanks Manarth,

But unfortunatly I am running under Win98 SE...Damn!

Still ???? for me..

Can it be so complicated actually?

Thanks,

Martin
 
If you're running windows 98 you shouldn't have to change permmissions.

chmod command
the chmod command sets the permissions for (in this order) owner|group|everyone-else
7 is the permissions for 'read-write-execute' (i.e. everything).

'chmod 777' effectively means: let anyone do anything to this file (read it, write to it, delete it...etc).

Windows 98 (and FAT32) doesn't have any file-access permissions settings to alter. The only thing that may cause an issue is the read-only flag.


What issue are you having?

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Thanks Manarth,

The problem is that I am doing a CMS website and I have a problem with it and I think it is that I have to change the promission (to 777 dus totally open) on a folder. Normally I just do that with FTP on my providers server..But no with a localhost...!!

First I thought that if I have a local server installed it was set to 777(because I haven't been having any problems before) but maybe that is not the case..But how to change it?

I am running the server(local) with PHPTriad..

Greetings from Martin
 
I think I am getting some progress here now...I am using Filezilla and I changed the port to 80 and now it is connecting but wait for a welcome message forever.

But still, progess

Greetings from Martin
 
snobba, I'm afraid to tell you that you will never be able to set the permissions to 777 - because these permissions exist on file systems running under unix/linux/posix. They do not exist on FAT partitions such as the one running under Windows - even if you connect via FTP.


Can you describe the problems you are receiving? Or you could also try describing the problems in the CMS forum1246 (it sounds more a CMS related issue than an apache server issue).

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
snobba, I suggest you put trying to chmod your fat32 file system out of your mind before you hurt yourself. You should have your ftp server listening on port 21 (port 20 for data). You will cause conflicts with your web server if you continue to use port 80. You can use apache to regulate who can do what where using the following directives:

Order allow, deny
allow from all

This would go in the directory container for the directory you want to chmod. This will apply to this directories sub-directories as well.

 
Ok, I am a newbie(on servers) but WHERE do I do that?? I there a program I can use? These 'Order allow, deny
allow from all
', do I put them in a shell or something?

Remember that I am running my server on my normal computer with and I thought 80 port was the one for communicating with the
Thanks,

Greetings from Martin
 
the port number refers (almost always) to the service.

port 80 is for http
port 21 = ftp
port 22 = ssh
port 25 = smtp
port 110 = email

you can't use ftp unless you're running an FTP server.

As for these rules, you apply these in the apache config files.

It's worth reading the Apache 2.0 manual.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Finally the thing I have been looking for!!! GREAT!!! Thank you ver very much!! Config for my phpgeekutil in apache/config it was..

Take care!

Martin
 
Just my two cents here, but if working with Apache in Win 98 is such a problem, you could pick up another computer to run some flavor of Linux/BSD and have that serve up Apache. My webserver is running on a box that I picked up for $40.

Of course, then you'd need to invest in some networking equipment, if you haven't already.



Wishdiak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top