Skip to main content

Posts

CREATING EC2 UNDER NEW VPC AND SUBNET IN AWS

In this article we will create a new vpc and a subnet first.Then we will create a internet gateway and route the traffic through this gateway. creation of VPC From AWS dashboard Click VPC > Create VPC . Give a name tag, ipv4 addresss and click Yes Create creation of subnet    From VPC subnet > Click on subnet.Give subnet and select our vnet.Give necessery datails as follows and click yes create   creation of internet-gateway   From VPC dashboard > Internet gateways > Create Internet gateway.Give name and click create Creating Routing table Go to subnet Assosiation and attach ou subnet.Now go to routes and give Destination as 0.0.0.0/0 and target as internet gateway as follows   Creation of ec2 instance From dashboard > ec2 > Launch instance > Select the ami image we want(Here i selected amazon instance) > select size we want (t2.micro) > Now select number of instances,s...

WORDPRESS MULTISITE CONFIGURATION ON CENTOS 7

First install wordpress.For that follow #cd /var/www/html #vi wp-config.php Add the following line above "/* That’s all, stop editing! Happy blogging. */" /* Multisite */ define('WP_ALLOW_MULTISITE', true); Open httpd.conf and enable .htaccess file #vi /etc/httpd/conf/httpd.conf <Directory /var/www/>                 Options Indexes FollowSymLinks MultiViews                 AllowOverride All                 Order allow,deny                 allow from all </Directory> Create a directory for multisites #mkdir /var/www/html/wp-content/ blogs.dir Now restart httpd restart #service httpd restart Go to browser and login to wordpress dashboard From Tools > Network setup Select sub...

DISABLING DIRECTORY LISTING IN APACHE

We can disable directory listing in our apache webserver. Open httpd.conf file In centos: #vi /etc/httpd/conf/httpd.conf In ubuntu: #vi /etc/apache2/apache2.conf Now change the line under Directory module: Options Includes Indexes FollowSymLinks MultiViews to Options Includes FollowSymLinks MultiViews Now save the file and restart httpd service. #service httpd restart (Centos) #service apache2 restart(Ubuntu) But this is valid only when AllowOverride is None.That means when .htaccess file have no right over configuration. When AllowOverride module is set to All,Go to perticular directory where we want to disable listing.Create a .htaccess file there #vi .htaccess Options -Indexes This will disable the directory listing.(Major advantage of .htaccess is that we don’t want to restart service after placing .htaccess file)

INSTALLING PIWIK 3.2.1 ON UBUNTU 16

PIWIK is a downloadable, Free (GPL licensed) web analytics software platform. It provides detailed reports on your website and its visitors, including the search engines and keywords they used, the language they speak, which pages they like, the files they download and so much more. PIWIK aims to be an open source alternative to Google Analytics. To run Piwik your host needs a couple of things: >Webserver such as Apache, Nginx, IIS, etc. >PHP version 5.5.9 or greater >MySQL version 5.5 or greater, or MariaDB (enabled by default) PHP extension pdo and pdo_mysql, or the mysqli extension First install apache2 package #apt-get install apache2 Now install php and mysql-server packages We are installing php 7.0 here since it is more memory efficient than older versions #apt-get install php7.0 php7.0-curl php7.0-gd php7.0-cli mysql-server php7.0-mysql php-xml php7.0-mbstring  libapache2-mod-php7.0 php7.0-mcrypt php7.0-zip #service apache2 start #service mysql start Set mysql dat...

PHPBB ON CENTOS 6.9

First install LAMP setup on our centos 6 server.(Note: phpBB requires MySQL version 3.23 or higher and you must be running PHP 4.3.3 or higher.) Now install the following packages #yum -y install php php-curl php-json php-gd php-mysql php-zlib php-ftp php-xml ImageMagick Open php.ini page and append the following #vi   /etc/php.ini extension=imagick.so #mysql -u root -p mysql> create database phpbbdb; Query OK, 1 row affected (0.00 sec) mysql> grant all on phpbbdb.* to phpbbuser@localhost identified by 'redhat'; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye Download phpbb3.1.10 on /tmp # wget https://www.phpbb.com/files/release/phpBB-3.1.10.zip Extract it to /var/www/html directory #unzip phpBB-3.1.10.zip -d /var/www/html/ Set ownership of /var/www/html to apache #chown -R apache:apache /var/www/html Restart httpd and mysql services #...