mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 07:46:35 +01:00
- Changed PHP symlink from version 8.0 to 8.3 in various scripts to ensure compatibility with the latest PHP version. - Updated documentation links in the FAQ to point to the new community support page. - Added checks and fixes for MariaDB installation issues specific to AlmaLinux 9. - Enhanced the installation script to support additional PHP versions and improve overall installation reliability.
115 lines
3.8 KiB
Bash
115 lines
3.8 KiB
Bash
#!/bin/bash
|
|
|
|
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
BLUE='\033[0;34m'
|
|
PURPLE='\033[0;35m'
|
|
NC='\033[0m' # No Color
|
|
|
|
#${RED}text${NC}
|
|
#${GREEN} ${BLUE}
|
|
|
|
echo -e "Use Up/Down Arrow key to navigate\n"
|
|
echo -e "press ${RED}q${NC} to exit\n"
|
|
echo -e "Frequently Asked Question
|
|
|
|
${PURPLE}1.${NC} How to reset CyberPanel admin password?
|
|
|
|
execute command ${RED}adminPass YOUR_NEW_PASSWORD${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}2.${NC} How to reset LiteSpeed WebAdmin Console user/password ?
|
|
|
|
execute command ${RED}/usr/local/lsws/admin/misc/admpass.sh${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}3.${NC} How to access LiteSpeed webadmin console ?
|
|
|
|
Please check this post: ${GREEN}https://community.cyberpanel.net/c/support/55${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}4.${NC} What is MariaDB root password ?
|
|
|
|
execute command ${RED}cat /etc/cyberpanel/mysqlPassword${NC} will show you the root password
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}5.${NC} Can I change MariaDB root passwod ?
|
|
|
|
Yes , but after you changed , please make sure you have updated the password in following 2 files as well
|
|
|
|
${RED}/etc/cyberpanel/mysqlPassword${NC}
|
|
|
|
${RED}/usr/local/CyberCP/CyberCP/settings.py${NC}
|
|
|
|
otherwise CyberPanel will not have access to database.
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}6.${NC} How to raise upload limit for cyberpanel's phpMyAdmin and File Manager?
|
|
|
|
edit file ${RED}/usr/local/lsws/lsphp83/etc/php.ini${NC} for CentOS or openEuler
|
|
|
|
${RED}/usr/local/lsws/lsphp83/etc/php/8.3/litespeed/php.ini${NC} for Ubuntu
|
|
|
|
find 2 configurations:
|
|
|
|
${RED}post_max_size${NC} and ${RED}upload_max_filesize${NC} , change from to higher number, e.g. ${RED}100M${NC} (don't miss the M)
|
|
|
|
and then run ${RED}pkill lsphp${NC} to kill all current php process for new configuration to take effect.
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}7.${NC} How to add more IPs to my website(s) ?
|
|
|
|
For OpenLiteSpeed, please check this post: ${GREEN}https://community.cyberpanel.net/c/support/55${NC}
|
|
|
|
For LiteSpeed Enterprise, please check this post: ${GREEN}https://community.cyberpanel.net/c/support/55${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}8.${NC} How to remove 8090 port in CyberPanel URL ?
|
|
|
|
Please check this post ${GREEN}https://blog.cyberpanel.net/2018/12/25/how-to-remove-port-8090-from-cyberpanel/${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}9.${NC} How to enable Auto-Index for my site ?
|
|
|
|
Please check this post ${GREEN}https://community.cyberpanel.net/c/support/55${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}10.${NC} How to add additional headers for my website ?
|
|
|
|
Please check this post ${GREEN}https://openlitespeed.org/kb/how-to-set-up-custom-headers/${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}11.${NC} How to mimic Apache deny/allow directive ?
|
|
|
|
Please check this post ${GREEN}https://openlitespeed.org/kb/access-control/${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}12.${NC} How to fix max_allowed_packet error ?
|
|
|
|
You may see this error when your PHP script requires a larger packet size
|
|
|
|
add following code into ${RED}/etc/my.cnf${NC}
|
|
|
|
${GREEN}[mysqld]
|
|
max_allowed_packet=500M${NC}
|
|
|
|
and then restart MariaDB by command ${RED}systemctl restart mariadb${NC}
|
|
|
|
${BLUE}------------------------------------------------------------${NC}
|
|
|
|
${PURPLE}13.${NC} How to enable PHP error log ?
|
|
|
|
Please check this post ${GREEN}https://community.cyberpanel.net/c/support/55${NC}
|
|
" |