Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:28:13+00:00 2026-06-16T03:28:13+00:00

I got my new VPS server with CentOS 5.8, I could not transfer my

  • 0

I got my new VPS server with CentOS 5.8, I could not transfer my domain yet but I want to reach my site via http://my-server-ip and since I am using laravel framework I need to change default DocumentRoot httpdocs to httpdocs/public I have tried to put those lines to httpd.conf file:

<VirtualHost my-server-ip:80>
DocumentRoot /var/www/vhosts/my.domain.org/httpdocs/public
ServerName  my.domain.org
</VirtualHost>

However after restarting apache it warns me like this:
Warning: DocumentRoot [/public] does not exist

What should I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:28:15+00:00Added an answer on June 16, 2026 at 3:28 am

    You’ll need to enable read (and possibly execute) privileges on the directory. As root try:

    # Recursively set the owner of this folder to 'www'
    chown -R www /var/www/vhosts/my.domain.org/httpdocs/public
    
    # Recursively give the owner read and execute privileges
    chmod -R u+rx /var/www/vhosts/my.domain.org/httpdocs/public
    

    As an alternative on some setups the user might be called nobody. So if www doesn’t work try:

    chown -R nobody /var/www/vhosts/my.domain.org/httpdocs/public
    

    EDIT:
    As user tink pointed out in the comments
    “…in Centos the user running apache is aptly called apache. In debian and it’s derivatives, it’s www-data.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a new site setup using CMSMadeSimple (PHP based) but I'm having problems
My iPhone developer certificate expired. I got a new one (developer_idendity.cer) but I'm not
We've got a new server with TFS installed. The current environment is very usual,
I've got a new website moved to my server. This website uses PHP and
I am pretty new to Linux. Got a VPS set up yesterday, installed Apache2,
I just got a Windows Server 2008 VPS and I'm having trouble getting IIS7
We just got new servers for our new system and I want to know
I´ve just moved my Drupal site to a new managed VPS. Each time I
I got a new requirement from the business about real time data/statistics. They want
Got the new Retina MacBook and it has not been playing nice with xCode.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.