Enable user connection to ownCloud using port 8080
Admin
Note: You must have your server root password to change the ownCloud default port.
To change the port number used to connect to ownCloud, complete the following steps:
- Open the ownCloud text console.
- Enter this command to edit the file
sudo nano /etc/apache2/ports.conf
. Note: you must have the administrator password to run this command. - Replace
Listen 80
withListen 8080
. - Press the keys
^X
to exit the file. TypeY
to save your changes. - Enter this command to edit the file
/etc/apache2/sites-enabled/000-default.conf
. - Replace
<VirtualHost *: 80>
with<VirtualHost *: 8080>
. - Press the keys
^X
to exit the file. TypeY
to save your changes. - To restart the web service, enter
sudo service apache2 restart
. - Test the change using your browser by navigating to
your_ownCloud_IP:8080
.
If the changes do not work, you may need to restart your server.