Is basic LAMP tutorial in the library correct?

Hi!

I've recently set up an Ubuntu node at Linode. Done all the settings according to the basic tutorial, but couldn't get my own php pages to work. Instead of that Apache showed "It works!" from /var/www.

Then I disabled the default site with "a2dissite default" and got "403 Forbidden" in the browser.

Then I issued the following commands:

 chown -R root:root /srv/www/

 chmod -R 755 /srv/www/

 /etc/init.d/apache2 restart

And everything began to work.

The questions:

  • is the tutorial from Linode library correct?

  • as I understand there was the permissions issue. Is there any good tutorials explaining the usage of rights and users for Apache in Debian/Ubuntu (it would be good if it is focused for setting up Apache for php web apps)?

Thank you!

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct