{"id":277,"date":"2024-10-26T20:57:55","date_gmt":"2024-10-26T11:57:55","guid":{"rendered":"https:\/\/ledipsw.com\/wp\/?p=277"},"modified":"2024-10-27T00:09:56","modified_gmt":"2024-10-26T15:09:56","slug":"almalinux-9-4-%e3%81%ab-exment-6-1-6-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/ledipsw.com\/wp\/?p=277","title":{"rendered":"AlmaLinux 9.4 \u306b Exment 6.1.6 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"\n<p>AlmaLinux\u3092\u30b5\u30fc\u30d0\u69cb\u6210\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u76f4\u5f8c\u304b\u3089Exment\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u307e\u3067\u306e\u64cd\u4f5c\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SELinux\u7121\u52b9\u5316<\/h2>\n\n\n\n<p>\/etc\/selinux\/config \u306e SELINUX \u3092<br>disabled \u306b\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n\n\n\n<p>setenforce 0<br>\u3067\u4e00\u6642\u7684\u306b\u7121\u52b9\u5316\u3059\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a<\/h2>\n\n\n\n<p>firewall-cmd &#8211;add-service=http &#8211;zone=public &#8211;permanent<br>firewall-cmd &#8211;add-service=https &#8211;zone=public &#8211;permanent<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MariaDB\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>dnf install mariadb-server<br>mv \/var\/lib\/mysql \/home\/mysql<br>ln -sf \/home\/mysql \/var\/lib\/mysql<br>systemctl enable &#8211;now mariadb<\/p>\n\n\n\n<p>Exment\u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<br>mysql<br>create database exment_db;<br>grant all on exment_db.* to exment_user@localhost identified by &#8216;exment_pass&#8217;;<br>flush privileges;<br>exit<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>dnf module enable nginx:1.24<br>dnf install nginx<br>systemctl enable &#8211;now nginx<\/p>\n\n\n\n<p>\/etc\/nginx\/nginx.conf \u306e server \u30d6\u30ed\u30c3\u30af\u306b<br>location \/ {<br> try_files $uri $uri\/ \/index.php$is_args$args;<br>}<br>\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n\n\n\n<p>systemctl restart nginx<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>dnf module enable php:8.2<br>dnf install php php-gd php-ldap php-zip<br>systemctl enable &#8211;now php-fpm<\/p>\n\n\n\n<p>\/etc\/php.ini \u3067<br>max_execution_time = 180<br>max_input_vars = 3000<br>memory_limit = 512M<br>uppload_max_filesize = 20M<br>\u306b\u305d\u308c\u305e\u308c\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n\n\n\n<p>\/etc\/php-fpm.d\/www.conf \u306e<br>user \u3068 group \u3092 nginx \u306b\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n\n\n\n<p>systemctl restart php-fpm<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Composer \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>php -r &#8220;copy(&#8216;https:\/\/getcomposer.org\/installer&#8217;, &#8216;composer-setup.php&#8217;);&#8221;<br>php composer-setup.php<br>php -r &#8220;unlink(&#8216;composer-setup.php&#8217;);&#8221;<br>mv composer.phar \/usr\/local\/bin\/composer<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exment \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u3001Nginx\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\/var\/www \u3068\u307f\u306a\u3057\u3066\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>cd \/var\/www<br>wget https:\/\/exment.net\/downloads\/ja\/exment.zip<br>unzip exment.zip<br>rm exment.zip<br>cd exment<\/p>\n\n\n\n<p>LDAP\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001<br>composer require adldap2\/adldap2-laravel &#8211;ignore-platform-reqs<br>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br>\uff08\u7b46\u8005\u306e\u74b0\u5883\u3067\u306f&#8211;ignore-platform-reqs\u3092\u3064\u3051\u306a\u3044\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u3067\u3059\u3002\u9577\u304f\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3055\u308c\u3066\u3044\u306a\u3044\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u3088\u3046\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p>chmod 775 \/var\/www\/exment<br>chown -R nginx:nginx \/var\/www\/exment<br>php artisan exment:setup-dir &#8211;easy=1<\/p>\n\n\n\n<p>\u3053\u3053\u3067 http:\/\/(Exment\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9)\/admin \u306b\u30a2\u30af\u30bb\u30b9\u3057 Exment \u3092\u521d\u671f\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>php artisan exment:setup-dir &#8211;easy_clear=1<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exment \u3092\u4f7f\u3063\u3066\u307f\u3066\u306e\u5370\u8c61<\/h2>\n\n\n\n<p>\u57fa\u672c\u7121\u6599\u3001\u52d5\u4f5c\u8efd\u3044\u3001\u30aa\u30f3\u30d7\u30ec\u904b\u7528\u53ef\u80fd\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3044\u3044\u3053\u3068\u3065\u304f\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u901a\u4fe1\u30a4\u30f3\u30d5\u30e9\u3055\u3048\u6574\u3063\u3066\u3044\u308b\u4e2d\u5c0f\u4f01\u696d\u3067\u3042\u308c\u3070\u3001\u9ad8\u304f\u3066\u3082\u767e\u4e07\u5186\u7a0b\u5ea6\u3067\u793e\u5185\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u4f7f\u3048\u308b\u30b5\u30fc\u30d0\u3092\u5c0e\u5165\u3067\u304d\u308b\u306e\u306f\u3001\u9b45\u529b\u3067\u3042\u308b\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002\uff08Raspberry Pi \u306a\u3069\u3092\u4f7f\u3048\u3070\u6570\u5343\u5186\u3067\u8a66\u4f5c\u3067\u304d\u308b\u304b\u3082\u2026\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<p><a href=\"https:\/\/exment.net\/docs\/#\/ja\/quickstart\">https:\/\/exment.net\/docs\/#\/ja\/quickstart<\/a><br><a href=\"https:\/\/qiita.com\/kanetugu2018\/items\/8192cc3461ef60b2f876\">https:\/\/qiita.com\/kanetugu2018\/items\/8192cc3461ef60b2f876<\/a><br><a href=\"https:\/\/rin-tech.blog\/exment%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E5%8F%8A%E3%81%B3%E7%92%B0%E5%A2%83%E8%A8%AD%E5%AE%9A\/\">https:\/\/rin-tech.blog\/exment%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E5%8F%8A%E3%81%B3%E7%92%B0%E5%A2%83%E8%A8%AD%E5%AE%9A\/<\/a><br><a href=\"https:\/\/tomikuma-white-bear.hatenadiary.org\/entry\/2021\/01\/14\/212058\">https:\/\/tomikuma-white-bear.hatenadiary.org\/entry\/2021\/01\/14\/212058<\/a><br><a href=\"https:\/\/zenn.dev\/niiyama_k\/articles\/c3ec0913a4ba61\">https:\/\/zenn.dev\/niiyama_k\/articles\/c3ec0913a4ba61<\/a><br><a href=\"https:\/\/github.com\/Adldap2\/Adldap2-Laravel\">https:\/\/github.com\/Adldap2\/Adldap2-Laravel<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AlmaLinux\u3092\u30b5\u30fc\u30d0\u69cb\u6210\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u76f4\u5f8c\u304b\u3089Exment\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u307e\u3067\u306e\u64cd\u4f5c\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002 SELinux\u7121\u52b9\u5316 \/etc\/selinux\/config \u306e SEL&#8230; <a href=\"https:\/\/ledipsw.com\/wp\/?p=277\" class=\"readmore\">\u7d9a\u304d\u3092\u8aad\u3080<span class=\"screen-reader-text\">AlmaLinux 9.4 \u306b Exment 6.1.6 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-linux","content-layout-excerpt-thumb"],"_links":{"self":[{"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277"}],"version-history":[{"count":26,"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions\/306"}],"wp:attachment":[{"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ledipsw.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}