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!
Regarding the permalinks: when I look at the /etc/apache2/sites-available/000-default.conf files mine warns me saying:
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
<Directory "/var/www/html/>
# AllowOverride All # Deprecated
# Order Allow,Deny # Deprecated
# Allow from all # Deprecated
Require all granted # << New way of doing it
</Directory>
So your tutorial does not work for me, I can’t get permalinks to work :-(
Hi! Cool tutorial! One question: is that way also the same when using webpublishing with userdir? Any modifications within the 000-default.conf file necessary?
I use a webserver for my pupils at school to play around with wordpress and build websites, therefore the userdir-option is wonderful for me, but I have troubles with the permalinks and I think that there is a bug in my mod_rewrite configuration…
After doing the above steps my server rewrite only html file, when trying to rewrite with php file my browser (view source) showing the source code of the php file.
It’s not executing php. By the way I’ve enabled mod_rewrite and restarted the Apache.
Running Ubuntu 14.04 LAMP stack.
Contents of : /etc/apache2/sites-enabled/000-default.conf
<Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
Please help me on this and tell me what are the modules necessary and configuration changes needed.
Many thanks !
I think I got this working but I’m still a little confused. In Step 3 you mention to “sudo nano /etc/apache2/sites-enabled/000-default.conf” and in the code snippet that follows shortly after you show a file path of “/etc/apache2/sites-available/default” . I assumed I was suppose to nano the sites-available conf file instead of the sites-enabled conf file but wanted to be sure. Or maybe I missed something. Thanks for the write up though. Huge help.
If any of you are coming new to this (like me) you should check out the latest apache documention (2.4 at time of writing) before following this tutorial… the documentation says:
You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.
I assume this is new functionality, anyway for further info read the advice here: http://httpd.apache.org/docs/2.4/howto/htaccess.html
Hi Alvin, nice tutorial. I have this observation, did to the point where I put “RewriteEngine on” in the “.htaccess” file, and I was able to find the created “html doc” by doing both: “locahost/about.html or localhost/about” I did not actual enter any specific rule for it in the htaccess file. Can you explain this is so? Using Ubuntu Xenial, and apache version 2.4.18.
Best Regards
after adding <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> I am unable to restart my apache2 server. How i use it?