CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
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.
I'm trying to configure domains to point to each respective folder on server. I heard this can be done by configuring virtual host file. But I can't find it on CentOS 6. Can someone tell me where it is please?
I'm trying to configure domains to point to each respective folder on server. I heard this can be done by configuring virtual host file. But I can't find it on CentOS 6. Can someone tell me where it is please?
Regards, Bogomil
httpd.conf is under /etc/httpd/conf.
You may also look at /etc/httpd/conf.d/ for other configuration files
If not installed you can use "yum install httpd" to install it.
P.S.
sudo certainly exists on RHEL and CentOS but unlike other distros it isn't the default way of running admin commands. One logs in as root and runs them. sudo's purpose is to grant access to other non-admins to run specified commands as root. One can setup sudo to switch users (e.g. "sudo su -" to become root) and there is a default sudoers file.
If not installed you can use "yum install httpd" to install it.
P.S.
sudo certainly exists on RHEL and CentOS but unlike other distros it isn't the default way of running admin commands. One logs in as root and runs them. sudo's purpose is to grant access to other non-admins to run specified commands as root. One can setup sudo to switch users (e.g. "sudo su -" to become root) and there is a default sudoers file.
Apache is installed. I'm the admin. Although new to Linux. Look, look, look.... sudo command really works! But on my last installation it didn't. I'm still learning this thing. dc.901 thanks a lot. Seems the httpd.conf is hidden in /usr/local/apache/conf folder. Should I edit it manually or through Centos Web Panel?
Apache is installed. I'm the admin. Although new to Linux. Look, look, look.... sudo command really works! But on my last installation it didn't. I'm still learning this thing. dc.901 thanks a lot. Seems the httpd.conf is hidden in /usr/local/apache/conf folder. Should I edit it manually or through Centos Web Panel?
Now I have problems creating a file in that folder. Ftp doesn't want to create a file.
If I set up domain in Centos web panel and define Path seems no effect. To point domain to right folder the only way is through changing the httpd.conf file. Now how do I enable write permissions in the folder on server? To create a test index.html file.
Now I have problems creating a file in that folder. Ftp doesn't want to create a file.
If I set up domain in Centos web panel and define Path seems no effect. To point domain to right folder the only way is through changing the httpd.conf file. Now how do I enable write permissions in the folder on server? To create a test index.html file.
Ftp permissions problem fixed. But can not solve the problem with right domain pointing. I'll create a new question.
Apache is installed. I'm the admin. Although new to Linux. Look, look, look.... sudo command really works! But on my last installation it didn't. I'm still learning this thing. dc.901 thanks a lot. Seems the httpd.conf is hidden in /usr/local/apache/conf folder. Should I edit it manually or through Centos Web Panel?
Apache may be installed but apparently not using the CentOS repositories. /usr/local is where things go when you roll your own (e.g. download, configure and make). It is NOT the default location for the rpm provided by RHEL/CentOS. The usual location is /etc/httpd as posted by someone else.
I notice you didn't bother to answer the questions asked but rather want us to accept that you know what you're doing despite the fact you came here asking how to find a file.
Apache may be installed but apparently not using the CentOS repositories. /usr/local is where things go when you roll your own (e.g. download, configure and make). It is NOT the default location for the rpm provided by RHEL/CentOS. The usual location is /etc/httpd as posted by someone else.
I notice you didn't bother to answer the questions asked but rather want us to accept that you know what you're doing despite the fact you came here asking how to find a file.
As I come from Windows environment I like GUI and installed CentOS 6 with GNOME. Then I installed Apache via System/Add Remove Software. I installed Services GUI. Httpd service is up and running. After running that sudo find command, I found httpd.conf file in the /usr/local/apache/conf folder. Default folder /etc/httpd is empty! I installed CentOS Web Panel. Configured DNS, FTP, emails...
In my case I have localhost pointing to /home/bogomil/public_html folder. You can check 168.235.88.193 and domain waiguolaoshi.club for example. If you type waiguolaoshi.club/index.html it will show result. But waiguolaoshi.club will redirect to public_html localhost folder not to /home/bogomil/publich_html/waiguolaoshi folder.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.