How To Install Varnish To Run With Apache On CentOS

How to install Varnish on CentOS Step 1 – Install the latest version of Varnish on CentOS using the following command: 1 sudo yum install varnish How to Configure Varnish to work with Apache Step 1 – Now setup the basic configuration to make Varnish work with Apache. In CentOS and Fedora, Varnish configuration file is located in “/etc/sysconfig/varnish”. […]

Read More →

How To Set Up Apache Mod_Rewrite Module in CentOS

About Mod_Rewrite Mod_Rewrite is an Apache module used to manipulate URL’s and is compiled into the base Apache HTTP Server in CentOS.  See the mod_rewrite documentation for more information. How to configure the Apache mod_rewrite module Open the Apache configuration file located at /etc/httpd/conf/httpd.conf sudo vi /etc/httpd/conf/httpd.conf Change AllowOverride None to AllowOverride All inside the DocumentRoot Directory Directive, normally <Directory “/var/www/html”> […]

Read More →

Connecting to Multiple Databases in CodeIgniter

codeigniter

You can connect to more than one database simultaneously in CodeIgniter. In the database.php (inside application/config folder) file, you will find the following default database connection code. $active_group = ‘default’; $active_record = TRUE; $db['default']['hostname'] = ‘localhost’; $db['default']['username'] = ”; $db['default']['password'] = ”; $db['default']['database'] = ”; $db['default']['dbdriver'] = ‘mysql’; $db['default']['dbprefix'] = ”; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] […]

Read More →

CodeIgniter “No input file specified.” error in GoDaddy shared hosting [Solved]

codeigniter

Many programmers are facing “No input file specified.” while hosting a CodeIgniter application in GoDaddy shared server. Even I also faced the same problem last week. Here is a quick solution to fix the “No input file specified.” error. Before solving the problem, make sure that you have following configurations in /application/config/config.php file in your application. $config['index_page'] […]

Read More →

How to Create a LinkedIn Company Page

LinkedIn

A LinkedIn company page is an excellent way to raise brand awareness, promote career opportunities, and educate potential customers on your products and services. Getting Started First you must have a LinkedIn account. If you do not have a LinkedIn account, first create an account. Go to Interests > Companies Look for Create a Company […]

Read More →

How to remove index.php from URLs in CodeIgniter

codeigniter

For Localhost / VPS / Dedicated Hosting Open the httpd.conf Find LoadModule rewrite_module modules/mod_rewrite.so Remove # from the beginning of the line Find AllowOverride then change to be <Directory /> AllowOverride All Order deny,allow Deny from all </Directory> Save and restart Apache Create a .htaccess file at the root directory #Rewrite index.php #Start using rewrite […]

Read More →