Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
well you need to have a look at
/etc/httpd/httpd.conf
file for further configuration.
chkconfig httpd on <--to make it start on a reboot
service httpd restart <--to restart when you make changes to httpd.conf
read docs on setting up apache and ask a specific problem. we will be glad to help out.
I could not find the httpd filen where you said. when i go to
/etc/httpd/ the httpd.conf file is not their. However i can see this file on my system in THREE places(and dont know whether there is more):
1.
thankyou very much for your previous comments.
I have now gone through the httpd.conf file and made changes. But which one of the ones mentioned above is the one i should edit?
And what is my next step then?
2.
At the moment i have my web server in the office as i am currently working on it, but once it is ready i will take it to our ISP to keep it in one of their rooms with a special connectiona and ip. However i would like to test it here to see if it serves the websites correctly, amongst other things e.g. FTP. How do i can i view the websites i put on this web server from other computers?
my mistake../etc/httpd/conf/httpd.conf
if you want to host a single website, there is no editing needed to be done. all you got to do is place the website contents in the folder /var/www/html.
chkconfig httpd on <--to make it start on a reboot
service httpd restart <--to restart when you make changes to httpd.conf
try using scp instead of ftp. does the same work, but I dont think there is a gui for it. anyhow, setup ftp by installing the rpm package of vsftpd, insert your centos cd and go the place where you have the rpms stored.
mount /dev/cdrom /mnt
rpm -ivh vsftp*.rpm
service vsftpd start
chkconfig vsftpd on
conf file is in /etc/vsftd/vsftd.conf
you can view the system by just typing the ipaddress of it in any other browser, or your own for that matter.
i would like to view the documents i have put in aboutourrock.com.
I got the ip addres of my comp by typing /sbin/ifconfig and looking at inet addr. There where two inet addr, one under eth0 and also under lo. I tried these ip adresses on a web browser on the other computers at work and they did no work.
1. Accessing my website from another computer
i typed telnet IP-address 80 on the terminal window and got this response: IP-address/80: Name or service not known
i then went to security setttings and disabled my firewall.
Now the response i get is as follows: IP-address/80: Temporary failure in name resolution
2 vsftpd
i insatlled vstpd. Howeever when i type /usr/local/sbin/vsftpd &
i get the follwoing error: 500 OOPS: could not bind listening IPv4 socket
hi i did as you said abaove. I type it into the terminal window.
Should i include it in the httpd.conf document?
Now i can view my website when i type http://localhost/ or the internal LAN ip address of the computer. I still need to text whether i can view the website from a computer outside the LAN and on the internet, using the external ip of the router. I will do this in the next 20 mins (waiting for my friends to get into work).
However i still get errors when i type the following:
telnet IP-address 80
IP-address/80: Temporary failure in name resolution
/usr/local/sbin/vsftpd &
[root@localhost ~]# 500 OOPS: could not bind listening IPv4 socket
httpd 0: off 1: off 2: on 3: on 4: on 5: on 6: off
vsftpd 0: off 1: off 2: on 3: on 4: on 5: on 6: off
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.