Category: php

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 …

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 …

Information about .htaccess

December 22, 2015 by Linux Guru

Filed under Application, php

Last modified June 15, 2016

Information about .htaccess Htaccess (HyperText Access) is a powerful file that can control many aspects of how your web site functions. Htaccess works with several types of servers, but is most commonly found in use with the Apache web server. Why .htaccess? The htaccess file appears in a directory listing as what is called a dot file (.htaccess). The dot (or period) before the file …

Display PHP errors when you don’t have access to php.ini

December 17, 2015 by Linux Guru

Filed under Application, php

Last modified June 15, 2016

Display PHP errors when you don’t have access to php.ini If you are using a shared server, or just have a limited account on your company server, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). Still, in many situations it might be needed to enable php errors in the browser …