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

PhotonVPS: Cost-effective VPS provider

PhotonVPS is a specialized VPS provider establish...

Jump systems virtual hosting 50% discount ($7.5/year)

Jump systems is a foreign host established in 201...

HostBrink: €7.99/month/1 CPU/1GB RAM/20GB SSD/1TB bandwidth/KVM/Singapore

HostBrink is a Dutch hosting company. We introduc...

URPad: $12/year/512MB memory/35GB space/250G traffic/OpenVZ

URPad has been introduced many times on Aiba. Gen...

OneProvider: $2.5/month/512MB/20GB SSD/1TB traffic/KVM/Los Angeles

OneProvider provides many independent hosting dat...

EX-CLOUD: 50 yuan/month/1GB memory/50GB space/unlimited traffic/OpenVZ/Japan

EX-CLOUD is a VPS hosting provider under NHN, whi...

DoHost.us latest discount code

DoHost.us has been providing stable services for ...