Shopify, Shopify Apps, Magento, WordPress, Codeigniter, Joomla, Big Commerce | PHP
Showing posts with label Cpanel. Show all posts
Showing posts with label Cpanel. Show all posts
Friday 4 October 2019
Thursday 18 July 2019
Check list of Installed PHP versions and PHP CLI version into cpanel
# ls /usr/bin/ | grep php
Result
alt-php-mysql-reconfigure@
alt-php-mysql-reconfigure.py*
ea-php54@
ea-php54-pear@
ea-php54-pecl@
ea-php55@
ea-php55-pear@
ea-php55-pecl@
ea-php56@
ea-php56-pear@
ea-php56-pecl@
ea-php70@
ea-php70-pear@
ea-php70-pecl@
ea-php71@
ea-php71-pear@
ea-php71-pecl@
ea-php72@
ea-php72-pear@
ea-php72-pecl@
lsphp*
php*
php5@
php5-cli@
php-cgi@
php-cli@
Tuesday 28 May 2019
How to connect ssh using PPK file into Cpanel from terminal Ubuntu
Connection command without PPK file
ssh username@146.66.87.208 -p18765Connection command with PPK file
ssh -i privatekey.ppk username@146.66.87.208 -p18765 (if not connect with PPK or give an error like "Load key "privatekey.ppk": invalid format" so please use the direct file without PPK format (See the following screenshot) ) (Supported port : 22, 18765, 18675)
Friday 25 August 2017
Zip File Extract using PHP file
If you have not cpanel of the server so you can use this php file and extract uploaded zip file.
<?php
ini_set('display_errors', 1);
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
$zip->extractTo('./rr/');
$zip->close();
echo "It's extract";
} else {
echo 'failed';
}
?>
Monday 23 January 2017
How to import Big SQL file usign PHP with shell command into hosting server
<?php
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', 1);
ini_set('memory_limit', '512M');
$dbinfo = array(
"host" => 'localhost',
"user" => 'magentom_jaydip',
"pass" => 'rmO22RQ%UbW0',
"dbname" => 'magentom_jaydip'
);
// Database Config
$sqlhost = $dbinfo["host"];
$dbuser = $dbinfo["user"];
$dbpassword = $dbinfo["pass"];
$dbname = $dbinfo["dbname"];
// filename
$file = "mg_jaydip.sql";
shell_exec("mysql -u $dbuser --password='$dbpassword' --host='$sqlhost' $dbname < $file");
echo 'Finished!<br/>';
?>
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', 1);
ini_set('memory_limit', '512M');
$dbinfo = array(
"host" => 'localhost',
"user" => 'magentom_jaydip',
"pass" => 'rmO22RQ%UbW0',
"dbname" => 'magentom_jaydip'
);
// Database Config
$sqlhost = $dbinfo["host"];
$dbuser = $dbinfo["user"];
$dbpassword = $dbinfo["pass"];
$dbname = $dbinfo["dbname"];
// filename
$file = "mg_jaydip.sql";
shell_exec("mysql -u $dbuser --password='$dbpassword' --host='$sqlhost' $dbname < $file");
echo 'Finished!<br/>';
?>
Monday 26 December 2016
How can i do When Disk quota exceeded into Cpanel or WHM
The system failed to open the session file "var/cpanel/session/raw:***" because of an error : Disk quota exceeded at /usr/local/cpanel/Cpanel/session.pm line 268
- Use : Download winscp (https://winscp.net/eng/download.php)
- Install and connect your FTP account or WHM account then remove some files.
- Finish!!!
Wednesday 2 September 2015
Subscribe to:
Posts (Atom)