PHP 5.4.44 on CentOS 6.7

Most of the yum repos doesn’t include PHP5.4.X on current releases for the time being. So if you need PHP5.4.X, you need to compile and build it for your self. I decided to put all required packages to the compilation, so most probably you wouldn’t need additional packages, just a quick tip, if you need […]

Read More

PHP5.6.3 on CentOS 6.6 with MSSQL Support

Most of the yum repos doesn’t include PHP5.6.X on current releases for the time being. So if you need PHP5.6.X, you need to compile and build it for your self. Advise: First of all, you should consider removing php packages from your server before compiling php, but beaware your codes will be visible till you […]

Read More

Compile and build Apache + MySQL + PHP from the source

This is a complete working solution to build Apache (httpd-2.2.25), MySQL (MySQL-5.6.14) and PHP (PHP-5.5.5) from the sources. Article tested many times on CentOS 6.4 and you can directly copy & paste the commands below to build the lastest releases. We advise you to use a freshly installed OS as compiling may corrupt or delete […]

Read More

Build PHP5.5 on CentOS 6.4 with MSSQL Support

Most of the yum repos doesn’t include PHP5.5.X on current releases for the time being. So if you need PHP5.5.X, you need to compile and build it for your self. Advise: First of all, you should consider removing php packages from your server before compiling php, but beaware your codes will be visible till you […]

Read More

Installing MS SQL Module to PHP on DirectAdmin

If you need to connect to an MS Sql Server remotely from your DirectAdmin server via php, you need to rebuild PHP with necessary components. Get the latest stable release of FreeTDS and install it. cd /root wget ftp://ftp.astron.com/pub/freetds/current/freetds-current.tgz tar -xvzf freetds-current.tgz cd freetds-dev.0.92.377 ./configure –prefix=/usr/local/freetds make make install Now we should tell Direct Admin’s […]

Read More

Install JSON Support to PHP on CentOS

Here’s a way to add JSON support for PHP on your CentOS server. yum install php-pear php-devel gcc make pecl install json cd /etc/php.d echo “extension=json.so” >> json.ini service httpd restart After these, you can easily check if it has been installed correctly. Either check your phpinfo() page or execute the following command.   php […]

Read More

PHP-SOAP Installation on DirectAdmin

People using Direct Admin usually do the mistake to install anything new by using the yum repositories. In fact, Direct Admin has a custom build method, so when you want to add something new to your system, you might need to recompile what’s allready installed. The same goes for the PHP-SOAP too. Yet don’t freak […]

Read More

Installing IonCube Loader on Linux

Installation of IonCube Loader on any variaty of Linux is very simple. Just get the copy from ioncube webpage itself, http://www.ioncube.com/loaders.php We will download the 64-bit version for our example. Then extract the file, copy the shared object file that matches your PHP version to an appropriate folder. To learn your PHP version you can […]

Read More

Download Plugged.in LAMP installer for CentOS 6.x

Version Info: V0.2 21/06/2012 DO you ever wanted to set-up a testing server with – Apache virtual config, logs, paths setted, – MySQL server with password set, – FTP Server (Vsftpd), – PHP and PhpMyAdmin installed & configured on your server or VPS in seconds? If you answer “yes” to the question, you are in […]

Read More

PHP : Convert/Replace Short Open Tags

Using short open tags, such as <? on your PHP code is not so clever. Other than the debate going on whether short open tags won’t be available on PHP6 or not, it is possible that your shared hosting has disabled it for some reason, or you might have to migrate your code sometime somewhere […]

Read More

Building PHP 5.4.3 on CentOS

Even though it’s easier to use yum, sometimes we need to compile PHP from source code. Below I’ll describe a method for compiling PHP 5.4.3 on CentOS, this works both on 5.x and 6.x and all the dependencies (except for PHP itself, of course ) will be retrieved via yum. After a fresh install of […]

Read More

Why should I use a MVC Framework ?

You wanna create a web based application, you have ideas but you have no idea about where to start. That is exactly where you should start using a MVC Framework. So what is a MVC Framework ? MVC is a programming pattern that comes with 3 components. M -> Model V -> View C -> […]

Read More