diff --git a/install.sh b/install.sh index 62289e1..6b89cf3 100755 --- a/install.sh +++ b/install.sh @@ -123,25 +123,6 @@ fi cd ~/.local/share/HamPackServer -echo "Enabling PHP extensions in /etc/php/php.ini..." -for ext in curl mbstring xml pdo_mysql mysqli openssl; do - sudo sed -i "s/^;extension=${ext}$/extension=${ext}/" /etc/php/php.ini -done - -echo "Configuring PHP module in httpd.conf..." -if ! grep -q 'LoadModule php_module' /etc/httpd/conf/httpd.conf; then - printf '\nLoadModule php_module modules/libphp.so\nAddHandler php-script .php\nInclude conf/extra/php_module.conf\n' | sudo tee -a /etc/httpd/conf/httpd.conf > /dev/null -fi - -echo "Switching Apache MPM to prefork in httpd.conf..." -sudo sed -i 's|^LoadModule mpm_event_module|#LoadModule mpm_event_module|' /etc/httpd/conf/httpd.conf -sudo sed -i 's|^LoadModule mpm_worker_module|#LoadModule mpm_worker_module|' /etc/httpd/conf/httpd.conf -if grep -q '^#LoadModule mpm_prefork_module' /etc/httpd/conf/httpd.conf; then - sudo sed -i 's|^#LoadModule mpm_prefork_module|LoadModule mpm_prefork_module|' /etc/httpd/conf/httpd.conf -elif ! grep -q '^LoadModule mpm_prefork_module' /etc/httpd/conf/httpd.conf; then - printf 'LoadModule mpm_prefork_module modules/mod_mpm_prefork.so\n' | sudo tee -a /etc/httpd/conf/httpd.conf > /dev/null -fi - # Install Cockpit if ! pacman -Qi cockpit &> /dev/null; then echo "Installing Cockpit..."