← Ocs-server/Install/Configuring a webserver as host You do not have permission to edit this page, for the following reason: The action you have requested is limited to users in one of the groups: Users, Administrators, trusted, KDEDevelopers. You can view and copy the source of this page. == Target system == This guide is inteded to use with Ubuntu and may use Ubuntu only commands. It can be adapted to other distros however. If you want to help adding support for other distributions please feel free to edit this page. == Install distribution packages == ===Ubuntu=== <syntaxhighlight lang="cpp"> sudo apt-get install libapache2-mod-php5 mysql-server php5-mysql phpmyadmin php5-gd </syntaxhighlight> == Enable URL rewriting == ===Ubuntu=== <syntaxhighlight lang="php"> sudo a2enmod rewrite </syntaxhighlight> Now open your server configuration file with your preferred text editor: <syntaxhighlight lang="php"> sudo nano /etc/apache2/apache2.conf </syntaxhighlight> Now change those line of code when Directory is / or /var/www: <syntaxhighlight lang="php"> AllowOverride None </syntaxhighlight> with: <syntaxhighlight lang="php"> AllowOverride All </syntaxhighlight> And restart your web server: <syntaxhighlight lang="php"> sudo service apache2 restart </syntaxhighlight> == Final result == Now you can check your server is now working at [http://localhost/ http://localhost/]. You are ready to follow the next tutorial. Return to Ocs-server/Install/Configuring a webserver as host. Retrieved from "https://community.kde.org/Ocs-server/Install/Configuring_a_webserver_as_host"