Category Archives: General

XAMP Change Localhost To Domain

Follow the below steps to Change localhost to custom domain name in XAMP server

1) Open the file C:\Windows\System32\drivers\etc and edit “as Administrator” => hosts file.

Add the below line and save the file.

127.0.0.1 phpcodez.com

2) Edit httpd-vhosts.conf file (In my system E:\xampp\apache\conf\extra and edit httpd-vhosts.conf )

Add the below lines and save the file

<VirtualHost *:80>
 ServerName www.phpcodez.com
 ServerAlias phpcodez.com
 DocumentRoot e:/xampp/htdocs/phpcodez
</VirtualHost>

3) Restart XAMPP and url www.phpcodez.com will load content form e:/xampp/htdocs/phpcodez

Change XAMPP Server Port

Follow the below steps to update the defalt port 80 apache XAMP Apache server

1) Stop the XAMPP server, if it is running already.

2) Open the file httpd.conf(In my case its E:\xampp\apache\conf\httpd.conf)

Locate

Listen 80
ServerName localhost:80

And replace with the other port number(8012)

Listen 8012
ServerName localhost:8012

3) Open the file httpd-ssl(In my system its E:\xampp\apache\conf\extra\httpd-ssl.conf)

Locate the following lines

Listen 443
<VirtualHost _default_:443>
ServerName localhost:433

Replace them by with a other port number(8013)

Listen 8013
<VirtualHost _default_:8013>
ServerName localhost:8013

4) Restart the Apache server and http://localhost:8012/ should work.

Unable to load dynamic library ‘xampp\php\ext\php_memcache.dll’

I have configured Memcached in XAMPP running onwindows 10. But the module was not appearing in phpinfo() data.

The system was throwing the following error.

PHP Warning: PHP Startup: Unable to load dynamic library ‘xampp\php\ext\php_memcache.dll’ – The specified module could not be found

The issue was due to the fact that the php_memcache.dll downloaded was not mathcing with the PHP version(7.1.14) that I have been using.

Later I downloaded the correct php_memcache.dll file from https://codeload.github.com/nono303/PHP7-memcache-dll/zip/master

Install Memcache XAMPP Windows 10

Memcache is a caching system used to speed up web applications by holding small pieces of arbitrary data, it could be broadly compared to the $_SESSION variable in PHP, but memcache works across the whole application not just on a per user basis and has been successfully proven to make great gains in speed increases on web applications.

Memcache was designed with Linux in mind and not windows, so it has posed some installation issues because Windows users are not so familiar with having to compile code from source as memcache does not come with any installation software. Continue reading Install Memcache XAMPP Windows 10

WAMP v/s XAMPP

Following are the main diffrence

WAMP stands for windows, apache, mysql, php. • XAMPP stands for x-os, apache, mysql, php , perl. (x-os means it can be used for any operating system.)

xampp is easy to use than wamp. • The best advantage of using wamp is that it is easy to setup configuration in wamp.

xampp cpanel is very nice and good for beginner. • Xampp start, pause and stop button work very nicely by functionality. • You can add other services to xampp also

XAMPP is more powerful and resource consuming than WAMP. • WAMP provides support for MySQL and PHP. • XAMPP provides support for MYSQL, PHP and PERL.

XAMPP also has SSL feature while WAMP doesn’t. • WAMP provides support for MySQL and PHP. • XAMPP provides support for MYSQL, PHP and PERL.

If your applications need to deal with native web apps only, Go for WAMP. • If you need advanced features as stated above, go for XAMPP.

As of priority, you cant run both together with default installation as XAMPP gets a higher priority and it takes up ports. • So WAMP cant be run in parallel with XAMPP.

ACID

In computer science, ACID (Atomicity, Consistency, Isolation, Durability) is a set of properties that guarantee that database transactions are processed reliably. In the context of databases, a single logical operation on the data is called a transaction. For example, a transfer of funds from one bank account to another, even involving multiple changes such as debiting one account and crediting another, is a single transaction.