LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2003, 08:18 AM   #1
jjay02
LQ Newbie
 
Registered: Aug 2002
Posts: 14

Rep: Reputation: 0
Unhappy It is impossible to find my http://localhost


Hi,
is it only a permission problem? The "inetd" services are all active!
I have tried in vain to set permissions with the graphical ftp client "Kbear".
The directories "srv", "www" have
been automatically set as "root" ( drwxr-xr-x ) so the system does not allow me
to change / edit them!
Please show me the correct command line in
the Shell - Konsole window to launch the right ftp
client in order to use correctly the CHMOD utility: what commands should I type
in to set a directory like "www" with permission "777"?

I can access to the FTP directory ( ftp://localhost ) but the problem persists while loading "http://localhost".
I receive the following error message:

"An error occured while loading http://localhost - Could not connect to host localhost".

Please tell me how can I launch the right FTP client in the Linux shell that allow me to set permissions? What are the command lines to do it? I'am not a guru.
It seems it is not a good idea to use the graphical FTP client "Kbear" for this purpose!
 
Old 02-28-2003, 09:11 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well first of all there is no need to launch an FTP client to change permissions. Also I do not believe this is a permissions problem. Your current permissions on the www directory(drwxr-xr-x) will allow everyone to view the web pages. If you want to be able to edit the files in the www directory then you should login as root. You don't want to change the permissions to 777 because then EVERYONE can edit your web files.

Are you sure the web server is running? If you can access ftp://localhost then you would be able to access http://localhost if the web server was on(assuming there are no problems with your web server configuration). Make sure the web server is on!
 
Old 03-01-2003, 03:10 AM   #3
jjay02
LQ Newbie
 
Registered: Aug 2002
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

for example, when I right click the folder htdocs in order to set permissions in its content it is impossible to save the changes.

How can I verify that the web server is on?
 
Old 03-01-2003, 04:11 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
with ps -aux

Look for httpd

Also, instead of "right clicking" open up a terminal. I tend to lean towards xterm for simplicity, however aterm/eterm are nice eye candy if that's your bag. Either way, fire up a terminal and use chmod, not right clicking. To chmod you will either have to be the owner of the directory/file or be root.

man chmod holds info on what commands to use. Just like Crashed said, you really really really really (get it?) don't wanna chmod 777 your files.

More than likely, it's just not on. Turn it on with either:
/etc/init.d/httpd start (I think?) OR
/sbin/apachectl start (Works for me)

You should also look at your httpd.conf file to find out where it's looking for your default index.html file (in other words your DefaultRoot) so you can also check to see if that's your problem (maybe it doesn't exist).

Cool
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: http://localhost (work) http://ipaddress (not working) sarmad Linux - Newbie 7 02-05-2013 07:47 AM
apache http://localhost/mysite ---> http://localhost/mysite/index.php how? ilnli Linux - General 8 06-04-2005 03:23 PM
Can't find http://localhost:631 encore Slackware 5 03-07-2005 06:26 PM
http://localhost does not work! Rajasekhar Atte Linux - Networking 1 12-17-2001 03:06 PM
Where is http://localhost ????? amp2000 Linux - General 13 11-21-2001 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration