マッチングサイト向けCMS osclass

# osclass
**osclass** はマッチングサイトが構築できるオープンソース CMS である。

# システム要件
* PHP 5.x
* MySQL (MariaDB は osclass 3.6.1 の時点で一部多言語対応に不備がある [^MariaDB] )
* GD

[^MariaDB]: https://github.com/osclass/Osclass/issues/2000

# インストール
```bash
yum install https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
yum install yum-utils
yum-config-manager --disable mysql57-community
yum-config-manager --enable mysql56-community
yum install mysql-community-server
yum install httpd php php-gd php-mbstring php-mysql
systemctl start httpd mysqld
systemctl enable httpd mysqld
firewall-cmd --add-service=http --zone=public --permanent
firewall-cmd --reload
mysqladmin create osclass
curl -LO https://static.osclass.org/download/osclass.3.6.1.zip
yum install unzip
unzip osclass.3.6.1.zip -d /var/www/html
chown apache:apache /var/www/html
chown -R apache:apache /var/www/html/oc-content/{uploads,downloads,languages}
chcon -t httpd_sys_script_rw_t /var/www/html
chcon -R -t httpd_sys_script_rw_t /var/www/html/oc-content/{uploads,downloads,languages}
```

![oc-dashboard.png](https://qiita-image-store.s3.amazonaws.com/0/15175/dad0b814-5107-484f-e12c-a434cb7b5215.png)


## 言語設定
Market > Languages
/oc-admin/?page=market&action=languages&mPage=2
Download ボタン押下し処理完了後、いったんログアウトして再ログインすると日本語化される。

## テーマ
### テーマのダウンロード
```bash
curl -L https://market.osclass.org/oc-content/plugins/market/download.php?code=osclasswizards-free-responsive-theme@2.0.4 -o osclasswizards_2.0.4.zip
unzip osclasswizards_2.0.4.zip -d /var/www/html/oc-content/themes
```

/oc-admin/?page=appearance

![oc-front.png](https://qiita-image-store.s3.amazonaws.com/0/15175/f6643eba-2e5c-726d-66f5-2c5bd833fcd8.png)

![oc-front-1.png](https://qiita-image-store.s3.amazonaws.com/0/15175/bc719ccd-c7ef-fa52-5fb5-14ba43b0c545.png)

![oc-front-2.png](https://qiita-image-store.s3.amazonaws.com/0/15175/7bf18337-3c40-ab98-4ab7-13393d8329fc.png)

![oc-front-3.png](https://qiita-image-store.s3.amazonaws.com/0/15175/1ef43145-a6b7-579d-d44b-f1f1f5e001fc.png)



## プラグイン
https://market.osclass.org/plugins/db-tools/database-log-table_250
https://market.osclass.org/plugins/e-mail/emailmagick_170
https://market.osclass.org/plugins/text-processing-wysiwyg-editors/rich-edit_31
https://market.osclass.org/plugins/user-management/admin-tools-login_225
https://market.osclass.org/plugins/attributes/custom-attributes_108
https://market.osclass.org/plugins/ad-management/butler_227
https://market.osclass.org/plugins/miscellaneous/pre-resize-images_496
https://market.osclass.org/plugins/social-networks/simple-social-share_357
https://market.osclass.org/plugins/counters/user-items-counter_463
https://market.osclass.org/plugins/miscellaneous/required-fields_30
https://market.osclass.org/plugins/attributes/jobs-attributes_5
https://market.osclass.org/plugins/attributes/products-attributes_9
https://market.osclass.org/plugins/ad-management/location-required_21
https://market.osclass.org/plugins/e-mail/auto-response_664
https://market.osclass.org/plugins/ad-management/watchlist_36
https://market.osclass.org/plugins/miscellaneous/php-info_82
https://market.osclass.org/plugins/miscellaneous/breadcrumbs_11
https://market.osclass.org/plugins/ad-management/buy-sell-options_14
https://market.osclass.org/plugins/counters/contact-counter_220
https://market.osclass.org/plugins/social-networks/hybridauth_336
https://market.osclass.org/plugins/ad-management/list-seller-items_20
https://market.osclass.org/plugins/miscellaneous/debug-read_582