Viewed 4k times. Improve this question. HopelessN00b Bernhard Bernhard 69 1 1 gold badge 2 2 silver badges 7 7 bronze badges. Have you put an index. AdamBatkin That shouldn't be needed. I would have a look at the web server logs to see which virtual host the request is routed to. Apache at least with CentOS comes with a module which displays the default page whenever there is no index. I already disabled SELinux. SO SELinux can't be the problem. I updated my post and added the logs and permissions — Bernhard.
Add a comment. Active Oldest Votes. First check that the user account that Apache is running as has access to your website folder it will also need traverse access to all folders above it in the path : ps aux grep httpd You should see lines like: apache 0. Restart apache with service httpd restart. Run getenforce to verify SELinux is in permissive mode. In your case, the problem is this line: [root srv2 website] ls -la total drwx 10 kvdp kvdp Nov 26 Improve this answer.
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. Click here for more info. Hello friends. I installed httpd server package in my centos7 on vmware and i wanted test it to see apache default page from windows using browser e.
I configed both vm and windows vmnet8 to get an automatic dhcp ip addresses. I have ping of my centos from windows cmd but i can't ping windows from centos. Can anyone help me? I know that real estate agents like to say 'Location, location, location! But I would tell you this: 'Logs, logs, logs' check your logs.
Here's one, of just two matches! Other LQ'ers advice welcome here. Last edited by Jjanel; at AM. Originally Posted by Jjanel. Last edited by Fardad74; at AM. Oooops, I added this which will let you 'semi-see' your webserver! But again, I don't know. Don't delete the file, because RPM will just put it back the next time you upgrade the httpd package. Sign up to join this community.
The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 8 years ago. Active 8 years ago. Viewed 16k times. Improve this question. Andris Andris 2 2 gold badges 6 6 silver badges 13 13 bronze badges. To change the document root for your Apache web server simply open the corresponding file with your favourite text editor and search for DocumentRoot.
Once you have modified the DocumentRoot , save the file and restart apache with:. The change of default document root is an easy task that can be completed in a couple of minutes. When making such changes is important to make sure that you do not make any typos and make sure to always restart Apache after making changes to its configuration file.
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web.
Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support.
Did everything as suggested. Still the html files saved in my new folder do not load in the web browser. Point 1 is pretty known stuff use netstat and some other commands, however it will not show all that is moved over the connection.
Some things could be hidden from netstan thing…. Point 2, and somebody bad could gain access to root sudo stuff,… I had issues with that thing, and I have tracked them to some place in africa… but after that I was not able to track them further ,….
0コメント