INSTALL ownCloud 5 On Ubuntu 12.10

By admin at 2017-09-29 • 0 collector • 1491 pageviews

LAMP Stack Setup on a VPS


# apt-get update

# apt-get upgrade

# apt-get install nano sudo wget


# apt-get install lamp-server^



# mysql_secure_installation


It will prompt you for your MySQL root password. Enter the password you entered upon installation of LAMP stack.


It will ask you to change root password, type "n" for no.

It will ask you to remove anonymous users, type "y" for yes.

It will ask you to disallow remote root logins, type "y" for yes.

It will ask you to remove test database and access to it, type "y" for yes.

It will ask you to reload privilege tables, type "y" for yes.



# apt-get install php5-gd php-xml-parser php5-intl smbclient curl libcurl3 php5-curl

หรือ

# apt-get install php5-gd php5-curl curl



To enable mod_rewrite and mod_headers, type the following:


# a2enmod rewrite

# a2enmod headers


Additionally, we have to change Apache2 config file in order for ownCloud rewrite rules to work properly. Execute the following:


# nano /etc/apache2/sites-available/default


There, find "<Directory /var/www/>" section and change the following:


AllowOverride None

to

AllowOverride All


Hit Ctrl + X, then Y, and then Enter to save the changes.



# service apache2 restart




To download ownCloud 5.0.4 source files, execute the following:


# wget http://download.owncloud.org/community/owncloud-latest.tar.bz2


# tar -xjf owncloud-latest.tar.bz2


# mv owncloud /var/www


# cd /var/www

# chown -R www-data:www-data owncloud


Setting Up a MySQL Database

We're almost done, there's only one thing left to do before we begin installation - setting up a proper MySQL database.


First, log in to MySQL with the following command:

# mysql -u root -p


CREATE DATABASE owncloud;


GRANT ALL ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'cdx75ccw';


http://198.46.133.42/owncloud to access ownCloud 5 installation.


Requires Login

Loading...