Algoritma Mencetak Bilangan yg Habis dibagi 3 dan 5
{Membaca i (bilangan 1 sampai dengan 100), kemudian
menentukan bilangan yang habis dibagi 2 dan 5}
Langsung saja sobs, ini source code nya :
C++
mysql -u root -p
CREATE DATABASE drupal;
CREATE USER drupaluser@localhost IDENTIFIED BY 'password';
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX, ALTER,CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO drupaluser@localhost;
FLUSH PRIVILEGES;
exit
sudo apt-get update sudo apt-get install php5-gd php5-curl libssh2-php
sudo nano /etc/php5/apache2/php.ini
. . . expose_php = Off . . . allow_url_fopen = Off . . .
sudo a2enmod rewrite
sudo nano /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80> . . . ServerName example.com ServerAdmin webmaster@example.com DocumentRoot /var/www/html <Directory /var/www/html> AllowOverride All </Directory> . . . </VirtualHost>
wget http://ftp.drupal.org/files/projects/drupal-7.34.tar.gz
tar xzvf drupal*
cd drupal* sudo rsync -avz . /var/www/html
cd /var/www/html
mkdir /var/www/html/sites/default/files
cp /var/www/html/sites/default/default.settings.php /var/www/html/sites/default/settings.php
chmod 664 /var/www/html/sites/default/settings.php
sudo chown -R :www-data /var/www/html/*
mysql -u root -p
CREATE DATABASE wordpress;
CREATE USER samp7@localhost IDENTIFIED BY '1234';
GRANT ALL PRIVILEGES ON wordpress.* TO samp7@localhost;
FLUSH PRIVILEGES;
exit
cd ~ wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
cd ~/wordpress
cp wp-config-sample.php wp-config.php
nano wp-config.php
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'samp7'); /** MySQL database password */ define('DB_PASSWORD', '1234');
sudo rsync -avP ~/wordpress/ /var/www/html/
cd /var/www/html
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server php5-mysql
sudo mysql_install_db
sudo mysql_secure_installation
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo nano /etc/apache2/mods-enabled/dir.conf
<IfModule mod_dir.c> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule>index.htmlindex.html
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl
index.xhtml index.htm
</IfModule>
sudo service apache2 restart