update path to execute php sessions

This commit is contained in:
Usman Nasir 2022-08-21 12:40:09 +05:00
parent 7818675685
commit 33dfe60c55
2 changed files with 4 additions and 5 deletions

View File

@ -23,7 +23,6 @@ if [[ -n $YUM_CMD ]]; then
elif [[ -n $APT_GET_CMD ]]; then
# Ubuntu
for phpver in $(ls -1 /usr/local/lsws/ |grep lsphp | sed 's/lsphp//g') ; do echo ""; echo "LSPHP $phpver" ; lsphpver=$(echo $phpver | sed 's/^\(.\{1\}\)/\1./'); sed -i -e "s|^;session.save_path.*|session.save_path = '/var/lib/lsphp/session/lsphp${phpver}'|g" -e "s|^session.save_path.*|session.save_path = '/var/lib/lsphp/session/lsphp${phpver}'|g" /usr/local/lsws/lsphp${phpver}/etc/php/${lsphpver}/litespeed/php.ini ; /usr/local/lsws/lsphp${phpver}/bin/php -i |grep -Ei 'session.save_path' && echo "" ; done; service lsws restart; killall lsphp;

View File

@ -1569,10 +1569,10 @@ fi
Post_Install_PHP_Session_Setup() {
echo -e "\nSetting up PHP session storage path...\n"
wget -O /root/php_session_script.sh "${Git_Content_URL}/stable/CPScripts/setup_php_sessions.sh"
chmod +x /root/php_session_script.sh
bash /root/php_session_script.sh
rm -f /root/php_session_script.sh
#wget -O /root/php_session_script.sh "${Git_Content_URL}/stable/CPScripts/setup_php_sessions.sh"
chmod +x /usr/local/CyberCP/CPScripts/setup_php_sessions.sh
bash /usr/local/CyberCP/CPScripts/setup_php_sessions.sh
#rm -f /root/php_session_script.sh
Debug_Log2 "Setting up PHP session conf...,90"
}