1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer

Paf.dias.ac.cy is a portal that can help you get your work done

Αυτή η υπηρεσία μπορεί να σας βοηθήσει να γίνετε πιο αποτελεσματικοί στην τάξη και στο μάθημα σας γενικότερα...

AIO-Commands

apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server phpmyadmin
apt-get install php5-curl php5-xmlrpc php5-intl


apt-get remove --purge apache2 php5-mysql libapache2-mod-php5 mysql-server phpmyadmin
apt-get remove --purge php5-curl php5-xmlrpc php5-intl
apt-get autoremove
apt-get autoclean


;find what is installed by name mysql
dpkg --get-selections | grep mysql
apt-get remove libdbd-mysql-perl
apt-get remove libmysqlclient18
apt-get remove mysql-client-5.5
apt-get remove mysql-client-core-5.5
apt-get remove mysql-common
apt-get remove mysql-server-5.5
apt-get remove mysql-server-core-5.5

dpkg --get-selections | grep php5
apt-get remove php5-cli
apt-get remove php5-common
apt-get remove php5-gd
apt-get remove php5-mcrypt

dpkg --get-selections | grep apache2
apt-get remove apache2-mpm-prefork
apt-get remove apache2-utils
apt-get remove apache2.2-bin
apt-get remove apache2.2-common


chown root:root /tmp
chmod 1777 /tmp
/etc/init.d/mysqld start


;Cleaning Up After "apt-get remove"
;By Niall Donegan on September 5, 2007 3:32 PM
;By default "apt-get remove package" doesn't purge everything related to the package. This eventually means that a
;log of configuration files are left scattered around the place with no corresponding packages. A couple of weeks
;ago, the following solution was proposed on #linux:

dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`

dpkg-reconfigure mysql-server-5.5

tar -zcvpf backup/new-mysql-elias.tar.gz /var/lib/mysql/
tar -xvpzf backup/new-mysql-elias.tar.gz -C /var/lib/mysql/


/etc/init.d/apache2 restart


mysql -u root -p

CREATE DATABASE moodle1 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle2 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle3 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle4 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle5 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle6 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle7 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle8 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle9 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle10 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle11 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle12 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle13 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle14 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE moodle15 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

CREATE DATABASE joomla1 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla2 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla3 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla4 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla5 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla6 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla7 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla8 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla9 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE joomla10 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp1 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp2 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp3 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp4 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp5 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp6 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp7 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp8 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp9 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE DATABASE wp10 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;


DROP DATABASE `moodle1` ;
DROP DATABASE `moodle2` ;
DROP DATABASE `moodle3` ;
DROP DATABASE `moodle4` ;
DROP DATABASE `moodle5` ;
DROP DATABASE `moodle6` ;
DROP DATABASE `moodle7` ;
DROP DATABASE `moodle8` ;
DROP DATABASE `moodle9` ;
DROP DATABASE `moodle10` ;
DROP DATABASE `moodle11` ;
DROP DATABASE `moodle12` ;
DROP DATABASE `moodle13` ;
DROP DATABASE `moodle14` ;
DROP DATABASE `moodle15` ;

DROP DATABASE `joomla1` ;
DROP DATABASE `joomla2` ;
DROP DATABASE `joomla3` ;
DROP DATABASE `joomla4` ;
DROP DATABASE `joomla5` ;
DROP DATABASE `joomla6` ;
DROP DATABASE `joomla7` ;
DROP DATABASE `joomla8` ;
DROP DATABASE `joomla9` ;
DROP DATABASE `joomla10` ;
DROP DATABASE `wp1` ;
DROP DATABASE `wp2` ;
DROP DATABASE `wp3` ;
DROP DATABASE `wp4` ;
DROP DATABASE `wp5` ;
DROP DATABASE `wp6` ;
DROP DATABASE `wp7` ;
DROP DATABASE `wp8` ;
DROP DATABASE `wp9` ;
DROP DATABASE `wp10` ;