You are on page 1of 1

public html

cd /home/admin/web/gaon.co.in/public_html/
wget https://github.com/opencart/opencart/archive/2.0.1.1.zip
unzip 2.0.1.1.zip
cd opencart-2.0.1.1
mv * .. (this will move file into public_html, take care to move files from uplo
ad folder to public_html folder)
cd - (to go one directory back)
rmdir "Directory" (to remove empty directory)
rm "filename"
rm -rf "directory" (to remove directory containing files)

chmod 666 config.php admin/config.php (to make files writable)


chmod 777 system/cache/ system/logs/ system/download/ system/upload/ image/ imag
e/cache/ image/catalog/ (to make folders writable)
install opencart
delete install directory after store installation
chmod 644 config.php index.php admin/config.php admin/index.php system/startup.p
hp (to prevent access to these files)
INSTALL WORDPRESS HACGLOBAL.ORG
cd /home/admin/web/hacglobal.org/public_html/
wget http://wordpress.org/latest.zip
unzip latest.zip
cd wordpress
mv * ..
cd rmdir wordpress
mv wp-config-sample.php wp-config.php
Upgrade your WordPress Blog in a Minute via SSH
Get the latest WordPress version available:
wget http://wordpress.org/latest.zip
unzip latest.zip
Delete the wp-admin and wp-includes directories:
rm -rf ./wp-includes/
rm -rf ./wp-admin/
Go to the wordpress directory:
cd wordpress/
Now, it s time to copy the downloaded files to your existing WP install, by overwr
iting old files:
cp -rpf -f * ../
Once done, come back to the WordPress directory and remove the downloaded files:
cd ..
rm -rf ./wordpress/
rm -f latest.zip

You might also like