|
![]() |
#1
|
||||
|
||||
![]()
Hey guys, I've been experimenting with this script which appears to still be actively maintained here: https://github.com/xiaomlove/nexusphp and hopefully we will be able to help each other out here as well.
![]() Here's a quick installation guide for anyone else who's interested. I'll be using Ubuntu Server with aaPanel (FOSS). If you are not using aaPanel, and doing manual installation of Nginx, MySQL etc, take note of the PHP_USER and ROOTPATH used below. Requirements: PHP => 8.0 MySQL => 5.7 Redis => 2.6.12 Extensions: bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix, gmp, zend opcache 1) Update you Linux Server Code:
apt update apt upgrade apt clean apt autoremove Code:
apt install screen wget curl vim Code:
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh aapanel 5) Use the one-click install option to install Nginx, mysql, pure-ftpd, php8 and phpmyadmin. 6) After installation is done, head over to "App Store" in aaPanel and select settings for PHP. 8) Under PHP setings, navigate to Install extensions and installing the following extensions: Code:
fileinfo opcache redis gmp Code:
proc_open exec putenv symlink 11) Navigate to "Files" in aaPanel 12) Download the latest release of NexusPHP from https://github.com/xiaomlove/nexusphp/releases using the remote download button. 13) Right-click the .zip file that was downloaded and select unzip. Rename the folder that was extracted to a preferred name. In this case, I'll name it nexusphp. 14) Now, head over to "Databases" in aaPanel and add a database. 15) Head over to "Websites" and select "Add site", input the detailed and submit. Code:
Domain name: Enter your domain/ip Description: Enter any description Website Path: Your root path, for me its /www/wwwroot/nexusphp as i named my folder nexusphp earlier on. FTP: Not required unless you need it Database: Not needed now, we will create it during the installation of the site. PHP version: PHP 8.0 or above. 15) Click "Conf" under Operation and do the following: Code:
Nagivate to Site Directory, untick Anti-XSS attack. Ensure, Site Directory is pointing to your root path /www/wwwroot/nexusphp Running directory is set to /public Code:
location / { index index.html index.php; try_files $uri $uri/ /nexus.php$is_args$args; } # Filament location ^~ /filament { try_files $uri $uri/ /nexus.php$is_args$args; } 18) Using your terminal navigate to your root path Code:
cd /www/wwwroot/nexusphp Code:
composer install Code:
cp -R nexus/Install/install public/ Code:
chown -R PHP_USER:PHP_USER ROOT_PATH Code:
chmod -R 0777 ROOT_PATH But before that, we have to create some cronjobs and daemons to keep the site running and maintained. 24) Create these 2 cronjobs to keep the website running, setup the following cronjobs by heading over to "Cron" in aaPanel: Code:
Type of Task: Shell Script Name of Task: Schedule Cron Execution Cycle: 1 Minute Script content: su -c "cd /www/wwwroot/nexusphp && php artisan schedule:run >> /tmp/schedule_nexusphp.log" -s /bin/sh www Type of Task: Shell Script Name of Task: CLI Cleanup Cron Execution Cycle: 1 Minute Script content: su -c "cd /www/wwwroot/nexusphp && php include/cleanup_cli.php >> /tmp/cleanup_cli_nexusphp.log" -s /bin/sh www Code:
Name: nexus-queue Run user: www Run dir: /www/wwwroot/nexusphp Start command: php /www/wwwroot/nexusphp/artisan queue:work --tries=3 --max-time=3600 Processes: Input the number of processes your server has. In my case, my server has a dual-core CPU. Therefore, it is 2. ![]() Credits: NexusPHP: https://github.com/xiaomlove/nexusphp NexusPHP Docs: https://doc.nexusphp.org/en/installa...et-the-program |
#2
|
|||
|
|||
![]() Quote:
Permissions set with 777 are not correct and even less certain. Also "(15) Click "Conf" under Operation and do the following: Nagivate to Site Directory, untick Anti-XSS attack." This is absolutely not recommended!!! There is a configuration in the AApanel that indicates what and how to use it i mean user.ini |
#3
|
||||
|
||||
![]()
Yes, you can re-enable Anti-XSS attack after installation. Also, mentioned that having permission 777 is not recommended.
|
#4
|
|||
|
|||
![]()
for some reason i got the famous
Quote:
|
#5
|
||||
|
||||
![]()
Could be any number of reasons, check your nginx error log.
|
#6
|
||||
|
||||
![]() Yeap, check the nginx log as subzero mentioned. If you are still unable to get it to work, maybe you can share the log here and I'll see if i am able to help you. |
#7
|
||||
|
||||
![]()
aaPanel as never been a go for not very good at all.go with somthing else or evern none and do from frash start from shell aka putty
__________________
![]() i do custom mods in torrenttrader for £ |
#8
|
|||
|
|||
![]()
Enter aaPanel from your browser, how do we do this?
|
#9
|
||||
|
||||
![]()
type
Code:
bt |
#10
|
|||
|
|||
![]()
from what i see code is still on mysql
that's bad it doesn't even have prepared statements and/or parameterized queries
__________________
Need HELP!? I can install:
|
![]() |
Tags |
howto , install , nexusphp |
|
|