FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi All
I'm running Fedora with apache all setup as a web server and run the test page from my browser.
I ftp log on with WS_FTP Pro and all's fine, but I only see a PUB directory and nothing else. I would like to FTP to /var/www/html directory to load my test web site. I've set permissions to read these directories but nothing. Am I missng something. Any help is appreciated
regards.
are you using vsftpd as your ftp server on Fedora? And are you using an anonymous ftp login?
If so, the default location for anonymous logins is /var/ftp
You can change this in /etc/vsftp/vsftpd.conf. I think the line is: anon_root=/var/ftp
Change the path to /var/www/html
You may not already have this line as it's a default, so just add it and restart the service.
Hi, thanks for that. I did work that out but now my web page will not load I tried restarting httpd but I get
-
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
and my WS_FTP Pro says
-
Failed to receive response after connect
I'll have to dig deeper. Apprecaite all the help I can get. If I reboot my server what services do I have to manually start or where can I set auto start ??
I loaded Fedora 11, apache, php, perl, mysql, vsftpd and all went well, loaded the apache test page, but for some reason it's all turned to brown runny stuff, by just trying to ftp pages to /var/www/html.
to auto start services, use the chkconfig command.
`chkconfig --list` to get a list of all your services.
`chkconfig httpd on` to have Apache auto start in runlevel 3 & 5 (which is what you want).
`chkconfig vsftpd on` to have vsftpd start.
`chkconfig mysqld on` to have mysql start .... etc for any other services.
Your "could not bind to address [::]:80" error looks like something might already be using that port. I am assuming you didn't configure vsftpd to also use port 80 did you? Does it fix itself after a restart - which would mean it didn't stop gracefully. Are you using IPv6 or just IPv4? Try the command `netstat -pantl |grep :80` to get a listing of what services are listening on that port. It should be httpd if the service is started.
Finally, once you get httpd started without errors and listening on port 80, if you still cant bring up your webpage, check the permissions on your website. For testing, the command `chmod 755 -R /var/www/html` should ensure they are readable.
Hi, yep, httpd is now working and I can see the apache default page. But I can not ftp to /var/www/html to load my test site. I'm using WS_FTP Pro and I get:
Connecting to 192.168.0.9:21
Connected to 192.168.0.9:21, Waiting for Server Response
Failed to receive response after connect
All the directories have had permissions set and I'm running vsftpd as:
[root@webdomain ~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
I've set to vsftpd to logon as anonymous. I've read 100's of pages on vsftpd and everyone has a different idea of what to do.
And no more port errors.
And there is more (if its part of this forum), check this and comment
[root@webdomain ~]# rpm -q mysql
mysql-5.1.41-2.fc11.i586
[root@webdomain ~]# mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Guess what I'm doing over holiday season. Any help is very much appreciated. Every thing when find from a blank HDD to installing/running Fedora 11 everything except my ftp access. Down hill from there.
I'm getting there I can now ftp in to the server, (no erros - all running) but defaults to /var/pub and not /var/www/html. There must be a default setting somewhere. Any ideas
My original post describes the part about changing the default "pub" location. Take a look below ....
Quote:
Originally Posted by zQUEz
are you using vsftpd as your ftp server on Fedora? And are you using an anonymous ftp login?
If so, the default location for anonymous logins is /var/ftp
You can change this in /etc/vsftp/vsftpd.conf. I think the line is: anon_root=/var/ftp
Change the path to /var/www/html
You may not already have this line as it's a default, so just add it and restart the service.
Thanks for your help. I'm getting there. I now can log in /var/www/html. But can not do any thing once there.
I've set every thing to 777 on my server (directories and files, temporary), set up users and set all the user permissions on vsftpd. All I get is 500 errors on my WS_FTP Pro when logging in. This may be getting outside this forum now. As said before I've looked at 100's of options in setting up vsftpd, tried many combinations of settings. Once I crack this all, it'll be good. Phew, talk about a crash course in linux. I've learnt heaps over the last few days.
Hi John VV
Well you learn something every day re update software.
I'll certinaly look at CentOS
It's just the Feadora set up so easily until I tried to load up to my www page with Dreamweaver 4 and WS-FTP Pro and then it turned to brown stuff.
Thanks again all for your help. I may be running around in these pages for a while asking at time some dumb questions.
All input is most greatfully apprecaited.
Best
Colin (slow to learn Kiwi)
Hi All
I've done my dash for now. I have done everything running ok except being able ftp in to my /var/www/ page
Here is my vsftpd settings if someone can spot the error
Hi zQUEz
Thanks for the feedback and help. Very much appreciated. I've disabled selinux as you described, but unfortunately no change to my problem. I think this thread has run out by now. There is something I've missed throughout this exercise. I've trawled through 100's of suggestions and people saying 'yep, thats fixed it', but in my case 'no change to the problem'. I've tried many FTP clients and all report the same '500: ......errors'. It's somewhere in one of the config files, either fedora, httpd or vsftpd. Things started off so well I thought this 'Linux' experience was a buzz.
I'm a month behind my project now. I've learnt a lot, but I think my best way is to 'flat line' the server and start again and re-look at the linux version. So, I'm open to suggestions on the best linux version/brand.
Once again, thanks for the help.
Colin
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.