Tutorial on installing ownCloud on CentOS 6

888u

Last update at :2024-05-21,Edit by888u

Based on CentOS 6.6 64-bit, operated under SSH, root privileges. Using apache, php, 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 and change AllowOverride None to AllowOverride All. save. 5. Create 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 and 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.

  • .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

    Recommended site searches: US server defense, foreign host, server rental US high defense, registration number query, registration-free space, domain name registration, website virtual host, US proxy IP, Hong Kong virtual host space, Korean cn2 server,

    p>

    Tutorial on installing ownCloud on CentOS 6

    All copyrights belong to 888u unless special state
    取消
    微信二维码
    微信二维码
    支付宝二维码