Skip to main content

Posts

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 domain or sub directory based upon our need .Give  Network title and email and cick install



 Now open wp-config.php file and add contents given there. Similary open .htaccess file and enter the contents given there


Now login again and we have configured wordpress for multisite configuaration.

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 database and user f…

PHPBB ON CENTOS 6.9

INSTALLING SMF ON UBUNTU 14

Simple Machines Forum(SMF)  is a free web-based internet forum. it is easy to install and setup. Before installing understand the basic requirements from their official site https://download.simplemachines.org/requirements.php.We need a LAMP setup inorder to install smf.
# apt-get -y install apache2 mysql-server mysql-client php5 php5-mysql php5-gd sendmail

#service apache2 start
#service mysql start

Create a database for smf
mysql -u root -p
mysql> create database smfdb;
Query OK, 1 row affected (0.00 sec)
mysql> grant all on smfdb.* to smfuser@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 smf.2.0.7 from their official site.It will run with php 5.5
#wget  wget https://download.simplemachines.org/index.php?thanks;filename=smf_2-0-15_install.tar.gz
Extract it to apache home directory
#tar -xvzf smf_2-0-7_install.tar.gz -C /var/www/html/
Change the ownerhip of h…

JOOMLA ON CENTOS 6.9

First install LAMP server( lamp on centos6.9 )

Create a temperory directory
#mkdir /test
#cd /test
Download joomla 2.5.7
#wget http://joomlacode.org/gf/download/frsrelease/17410/76021/Joomla_2.5.7-Stable-Full_Package.tar.gz

Extract the contents to /var/www/html
#tar zxvf Joomla_2.5.7-Stable-Full_Package.tar.gz  -C /var/www/html

First create a Joomla configuration file and make it temporarily world-writeable
#touch /var/www/html/configuration.php
 #chmod 777 /var/www/html/configuration.php

Create the Joomla Database and User
CREATE DATABASE joomla;
grant all on joomla.* to 'joomlauser'@'localhost' identified by 'REDhat@123';
flush privileges;

Now restart httpd and mysqld service
#service httpd restart
#service mysqld resatrt

Now from browser access your public ip http://your_public_ip









Once we have finished going through the installer, delete the installation folder per Joomla’s instructions and change the permissions on the config file
#rm -rf /var/www/html/ins…

INSTALLING MAGENTO 2.X ON CENTOS 6/7

Here iam installing magento 2.1.1 on centos 6.9.
For magento prerequisites visit: http://docs.magento.com/m1/ce/user_guide/magento/system-requirements.html. Here iam using apache 2.2.15 php 7.0 and mysql-community-server 5.6
First install apache #yum install httpd
Go it apache configuration file and make sure AllowOverride directive is set to All #vi /etc/httpd/conf/httpd.conf AllowOverride All
Now install mysql-community-server.For that first create a mysql-community-server repo #cd /etc/yum.repos.d/ #vi mysql.repo ------------------------------------------------------------------------------------------------------------------------------------------ [mysql57-community] name=MySQL 5.7 Community Server baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
--------------------------------------------------------------------------------------------------------------
For centos 7 use: [mysql57-communit…