Category: Application

Block /var/www/cgi-bin for unauthorized access

December 30, 2015 by Linux Guru

Filed under Application

Last modified July 15, 2016

Block /var/www/cgi-bin for unauthorized acces We need to update this in httpd.conf file. #<Directory “/var/www/cgi-bin”> #    AllowOverride None #    Options None #    Require all granted #</Directory> <Directory “/var/www/cgi-bin”> Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> Note:  After that the above configuration we will get the mail regarding cgi-error but this is safe configuration so that nobody can get unauthorized access …

PHP / MySQL Web Application Migration Steps

December 29, 2015 by Linux Guru

Filed under Application, php

Last modified July 15, 2016

PHP / MySQL Web Application Migration Steps There is a lot more work involved in Server Migration. The thing is, not all information is stored in navigable files and folders, there is information stored elsewhere in the system, such as a database, and meta information tied into the existing file structures. This article will mention steps required to move a web application. Requirements You will …

Deploy ncurses and mcrypt extension in php5

December 28, 2015 by Linux Guru

Filed under Application, php

Last modified July 15, 2016

Deploy ncurses and mcrypt extension in php5 ncurses and mcrypt is in the EPEL repository. EPEL Repository Url:-  http://epel.mirror.net.in/epel/ [1] You need to copy link location from above base EPEL url like [root@test~]#rpm -Uvh http://epel.mirror.net.in/epel/6/x86_64/epic5-1.1.6-1.el6.x86_64.rpm then You can use yum utility. [root@test~]#yum install php-mcrypt [root@test~]#yum install php-pecl-ncurses OR [2]  Directly install packages using web site. mcrypt [root@test~]#rpm -Uvh http://epel.mirror.net.in/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm [root@test~]#rpm -Uvh http://epel.mirror.net.in/epel/6/x86_64/php-mcrypt-5.3.3-1.el6.x86_64.rpm ncurses #rpm -Uvh …

Tomcat Default log location change steps

December 28, 2015 by Linux Guru

Filed under Application

Last modified July 15, 2016

Tomcat Default log location change steps Change the location of the tomcat log files such as to the /var/log/tomcat/ directory. Create New log location $sudo mkdir /var/log/tomcat $sudo chown -R tomcat:tomcat /var/log/tomcat/ [A] Application Logs: Please perform the following changes for changing the path of application logs: (Application logs default to the /opt/jakarta/tomcat/logs/ location.) Log File – File Changed – String Changed example.log – /opt/jakarta/tomcat/webapps/example/WEB-INF/classes/log4j.properties …

magento order confirmation email

December 25, 2015 by S4

Filed under Magento

Last modified June 15, 2016

magento order confirmation email magento order confirmation email  

Tutorial – How to fix Magento Email sending problem

December 25, 2015 by S4

Filed under Magento

Last modified June 15, 2016

Tutorial – How to fix Magento Email sending problem Tutorial – How to fix Magento Email sending problem  

Apache: Negotiation: Discovered File(s) Matching Request: None Could Be Negotiated

December 22, 2015 by Linux Guru

Filed under Application, Linux, logs, php

Last modified June 15, 2016

Apache: Negotiation: Discovered File(s) Matching Request: None Could Be Negotiated There are some methods to provide file in this manner,  www.example.com/index.php => www.example.com/index 1. Use of MultiViews In virtual host list, you can add entry for your server files by creating an alias.  <Directory “/home/server/htdocs”> Options Indexes Includes FollowSymLinks MultiViews Order allow,deny Allow from all AllowOverride All </Directory> 2. Use of RewriteEngine Make sure to …

Setting Password Authentication for Proxypass url / Setting Basic Authentication with Apache

December 22, 2015 by Linux Guru

Filed under Application, Linux, php

Last modified June 15, 2016

Setting Password Authentication for Proxypass url / Setting Basic Authentication with Apache There are two steps involved in setting up a user authentication system with Apache. First, you need to create the users along with passwords and have this information stored in a password file. Then you need to configure Apache and tell it which sections of the website you want protected and which users …

Speed up your site with Caching and cache-control

December 22, 2015 by Linux Guru

Filed under Application, php

Last modified June 15, 2016

Speed up your site with Caching and cache-control Caching with .htaccess and Apache will take your website and your web skills to the next level. This is some technical and advanced methods condensed to simple htaccess code examples for you. But you must take the time to understand caching with cache-control and other headers and HTTP options before you implement on a production server. Caching …

Useful URL rewriting examples using .htaccess

December 22, 2015 by Linux Guru

Filed under Application, php

Last modified June 15, 2016

Useful URL rewriting examples using .htaccess If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I’ve given five useful examples of URL rewriting using .htaccess Now let’s look at the examples 1) Rewriting product.php?id=12 to product-12.html It is a simple redirection in which .php extension is hidden from the browser’s address bar and …