Tutorial on installing ownCloud on CentOS 6

Tutorial on installing ownCloud on CentOS 6

Based on CentOS 6.6 64-bit, operated under SSH, root privileges.
Using apache, php, and mysql.

1. Upgrade the system

 yum update -y

2. Install PHP 5.6

 rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm yum install httpd php56w php56w-mysql php56w-dom php56w-mbstring php56w-gd php56w-pdo php56w-gd php56w-json php56w-xml php56w-zip curl php56w-curl sqlite -y

3. Install MySQL

 yum install mysql mysql-server -y service mysqld start mysql_secure_installation

4. Edit /etc/httpd/conf/httpd.conf
Next, change AllowOverride None to AllowOverride All.
save.
5. Create a database and log in to MySQL

 mysql -u root -p

Create a database (oc_db is the created database, your_root_password is the password of the database root user)

 CREATE DATABASE oc_db; GRANT ALL PRIVILEGES ON oc_db.* TO 'root'@'localhost' IDENTIFIED BY 'your_root_password'; FLUSH PRIVILEGES;

Exit mysql

 CTRL + C

6. Start Apache

 service httpd start

7. Download owncloud 8.0.4
Enter the apache directory

 cd /var/www/html

Download owncloud

 wget https://download.owncloud.org/community/owncloud-8.0.4.zip unzip owncloud* rm -rf owncloud-8.0.4.zip cd owncloud mv * /var/www/html

8. Set directory permissions

 chown -R apache.apache /var/www/html/

9. Use IP or domain name to perform web installation and follow the installation instructions.

  1. .htaccess pseudo-static, placed in the root directory:

     # Version: 8.0.4 SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1 RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION php_value upload_max_filesize 513M php_value post_max_size 513M php_value memory_limit 512M php_value mbstring.func_overload 0 php_value always_populate_raw_post_data -1 php_value default_charset 'UTF-8' php_value output_buffering off SetEnv htaccessWorking true RewriteEngine on RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L] RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L] RewriteRule ^\.well-known/carddav /remote.php/carddav/ [R] RewriteRule ^\.well-known/caldav /remote.php/caldav/ [R] RewriteRule ^apps/calendar/caldav\.php remote.php/caldav/ [QSA,L] RewriteRule ^apps/contacts/carddav\.php remote.php/carddav/ [QSA,L] RewriteRule ^remote/(.*) remote.php [QSA,L] RewriteRule ^(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L] RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L] AddType image/svg+xml svg svgz AddEncoding gzip svgz DirectoryIndex index.php index.html AddDefaultCharset utf-8 Options -Indexes ModPagespeed Off Header set Cache-Control "max-age=7200, public"

via: https://extravm.com/billing/index.php/knowledgebase/21/Install-ownCloud-on-CentOS-6.html

<<:  KMS-Hosting 1GB RAM 10Gbit Port German KVM VPS Review

>>:  DeinServerHost: €19.95/year/10GB SSD space/unlimited traffic/2 free .de domain names/Germany

Recommend

HOST4FUN:$20/year/1G memory/50GB SSD space/4TB traffic/OpenVZ/Germany

HOST4FUN has launched a special vps, located in G...

GeekStorage Hosting Coupon Code

If you are looking for a suitable virtual host or...

.tech domain name, 10-year registration, $40

Discount address: https://deals.neowin.net/sales/...

Hostodo: $18/year/4GB RAM/50GB space/2TB traffic/OpenVZ/Miami

Hostodo, which has been introduced many times, no...

BudgetVM long-term 50% discount code

BudgetVM is a sub-brand of Enzu, providing low-co...

Gullo 1 core 1GB memory 500Mbps port Singapore OpenVZ VPS review

Details : Gullo: $8/year/256MB memory/5GB space/2...

Introduction to JaguarPC, a US host company

1. Jaguar PC Introduction JaguarPC has been provi...