mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Compare commits
2 commits
5e05aa440e
...
a7f6c59818
Author | SHA1 | Date | |
---|---|---|---|
|
a7f6c59818 | ||
|
aac7ba0efe |
3 changed files with 24 additions and 0 deletions
|
@ -94,4 +94,25 @@ class PHPInstaller
|
|||
shell_exec('bash /tmp/php-installer.sh >> ' . $this->logFilePath . ' &');
|
||||
|
||||
}
|
||||
|
||||
public function installIonCube()
|
||||
{
|
||||
|
||||
// 64 bit
|
||||
// $ wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
|
||||
// tar -zxvf ioncube_loaders_lin_x86*
|
||||
// cd ioncube/
|
||||
// php -i | grep extension_dir
|
||||
// sudo cp /tmp/ioncube/ioncube_loader_lin_8.2.so /usr/lib/php/20220829
|
||||
|
||||
// sudo vi /etc/php/8.2/cli/php.ini #for PHP CLI
|
||||
// sudo vi /etc/php/8.2/fpm/php.ini #for PHP-FPM & Nginx
|
||||
// sudo vi /etc/php/8.2/apache2/php.ini #for Apache2
|
||||
|
||||
// zend_extension = /usr/lib/php/20220829/ioncube_loader_lin_8.2.so
|
||||
|
||||
// command to add zend_extension to the php.ini file
|
||||
// sudo echo "zend_extension = /usr/lib/php/20220829/ioncube_loader_lin_8.2.so" | sudo tee -a /etc/php/8.2/apache2/php.ini
|
||||
// sudo echo "zend_extension = /usr/lib/php/20220829/ioncube_loader_lin_8.2.so" | sudo tee -a /etc/php/8.2/cli/php.ini
|
||||
}
|
||||
}
|
||||
|
|
|
@ -301,6 +301,8 @@ class Installer extends Page
|
|||
|
||||
if (strpos($this->install_log, 'DONE!') !== false) {
|
||||
|
||||
unlink(storage_path($this->install_log_file_path));
|
||||
|
||||
file_put_contents(storage_path('installed'), 'installed-'.date('Y-m-d H:i:s'));
|
||||
|
||||
return redirect('/admin/login');
|
||||
|
|
|
@ -59,6 +59,7 @@ class SupportedApplicationTypes
|
|||
{
|
||||
$versions = [];
|
||||
$phpVersions = [
|
||||
'5.6',
|
||||
'7.4',
|
||||
'8.0',
|
||||
'8.1',
|
||||
|
|
Loading…
Reference in a new issue