Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
I have been able to install LAMP using your articles. I can run php scripts etc which are located in the default Document Root: /var/www/html
However, now I wish to move the Document_Root from default /var/www/html to another folder, in this case, lets say: /home/bingo/html where ‘bingo’ is a user with FTP access, I created this using the below command:
adduser -c ‘FTP USER Bingo’ -m bingo
Now, when I set the Document_Root to “/home/bingo/html” & try to access it through web, I am getting “Forbidden” error. Can anyone help me please?
Thanks a Ton in advance!
regards,
Sam
A forbidden error usually indicates a permissions problem so you want to ensure that the user that the webserver operates under can view the directory you set.
Make sure that the /home directory is 755 and that both bingo and html are set to 755 so that the user that the webserver runs as can browse those directories and read files which is required for serving files from that directory.
Instead of <pre>sudo chown -R www:www /var/www/example.com/public_html</pre>
In my case worked with:
<pre>sudo chown -R root:root /var/www/example.com/public_html</pre>
When I go to www.mydomain.com it works fine but going to mydomain.com does not I have this virtualhost file:
NameVirtualHost *:80
<VirtualHost *:80> ServerAdmin octavio.herrera@gmail.com ServerName mydomain.com ServerAlias *.mydomain.com DocumentRoot /var/www/html </VirtualHost>
<VirtualHost *:80> ServerAdmin octavio.herrera@gmail.com ServerName blog.mydomain.com ServerAlias blog.mydomain.com DocumentRoot /var/www/html/blog </VirtualHost>
I have tried with:
<VirtualHost *:80> ServerAdmin octavio.herrera@gmail.com ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /var/www/html </VirtualHost>
and with:
<VirtualHost *:80> ServerAdmin octavio.herrera@gmail.com ServerName www.mydomain.com ServerAlias mydomain.com DocumentRoot /var/www/html </VirtualHost>
and no luck, and my dns are with rackspace and I have an A record for mydomain.com and one for *.mydomain.com, I have also tried creating an A record for www.mydomain.com and still same problem
Thanks
“ErrorLog /etc/var/www/example.com/error.log” the etc is a typo right? There’s inconsistency in the code block there.