Skip to main content

Posts

Showing posts from December, 2017

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 databas

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 #

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 t

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 permiss

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 --------------------------------------------------------------------------------------------------