新規にサイトをオープンする手順

まだ書きなぐり状態 明日にでもまとめる予定。

postfix
vi /etc/postfix/virtual

postmap /etc/postfix/virtual

ddclient
vi ddclient.conf

apache

[root@psyche ssh]# groupadd -g 8000 sftponly
[root@psyche ssh]# usermod -G sftponly ataru

[ataru@psyche spearmint]$ chcon -R -t httpd_cache_t mainfile.php
[ataru@psyche spearmint]$ chcon -R -t httpd_cache_t uploads
[ataru@psyche spearmint]$ chcon -R -t httpd_cache_t xoops_trust_path_/cache
[ataru@psyche spearmint]$ chcon -R -t httpd_cache_t xoops_trust_path_/templates_c
[ataru@psyche spearmint]$ chcon -R -t httpd_cache_t xoops_trust_path_/uploads
[ataru@psyche spearmint]$ chcon -R -t httpd_cache_t xoops_trust_path_/uploads/xupdate
[ataru@psyche spearmint]$ chcon -R -t httpd_cache_t xoops_trust_path_/modules/protector/configs
[ataru@psyche spearmint]$ chmod 777 xoops_trust_path_/uploads
[ataru@psyche spearmint]$ chmod 777 xoops_trust_path_/uploads/xupdate
[ataru@psyche spearmint]$ chmod 777 xoops_trust_path_/modules/protector/configs

semanage fcontext -a -t httpd_user_content_t ‘/home/ataru/samba/html(/.*)?’
chcon -R -h -t httpd_sys_content_t /path

setsebool ssh_chroot_rw_homedirs on

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.