Tuesday, June 19, 2018

[Fixed] How to install Memcache in XAMPP, on window 10 successfully

[Fixed] How to install Memcache in XAMPP, on window 10 successfully



Note- after days investing in debugging and research, finally I found that why my installation was not success.

If you are facing these kind of issue-
1.       Fatal error: Class 'Memcache' not found (or) Fatal error: Call to undefined function memcache_connect()
2.       PHP Warning:  PHP StartupUnable to load dynamic library 'php_memcache.dll' (tried: C:\xampp\php\ext\php_memcache.dll (%1 is not a valid Win32 application.)       
3. Or simply you are new to memcache then follow one by step.



Follow these steps- 

1.   Run phpinfo() in your XAMPP.
2.   See, Compiler and Architecture.



    Now search TS, or NTS, you will get one atlist. In my case I found 
    Zend Extension Build = API320170718,TS,VC15

    This mean, We need Memcache of VC15 32 bit and TS (thread safe version).
    (if a package is NTS then it will mention explicitly otherwise not)

    Now once you find your right file name, go here and download-



Go to ext folder and copy php_memcache.dll and php_memcache.pdb 
Restart the server and refresh phpinfo() page.

Now Search Memcache. If you can see a block, then you have won the battle.














Copy the sample code from this link- https://github.com/sudhir600/php-memcache-testing-script
Create a php page called test.php and paste code.
navigate test.php. If you don’t see any error that mean your installation process has been completed successfully and go rock.

Monday, April 16, 2018

set virtual host (custom domain) in Nuxt / VueJs template

Hi,
if you are using Nuxt framework and your build url is something like
127.0.0.1/project:3000 or any port  but you want to access through domain like comedymood.com

Then you are in right place.

Follow this steps.

1. Open package.json file 
add this entry.

"config": {
    "nuxt": {
      "host": "0.0.0.0",
  "port": "80"
    }
  }

2. Open HOST file (file:///C:/Windows/System32/drivers/etc/hosts)
add this entry at bottom.


127.0.0.1 comedymood.com

now terminate npm process if running (ctrl+c) and then run again by "npm run dev"
you will get the url like localhost:80


But don't worry.
you open comedymood.com in your favourite browser.   
Thanks.


Wednesday, April 11, 2018

xampp - localhost is working but not 127.0.0.1 in windows

Open C:\xampp\apache\conf\extra\httpd-vhosts.conf

search <VirtualHost *:80> or this line (DocumentRoot "c:/xampp/htdocs/)
replace this with below code.

<VirtualHost 127.0.0.1:80>
DocumentRoot "c:/xampp/htdocs/"
ServerName localhost
<Directory c:/xampp/htdocs/>
Require all granted 
</Directory>
</VirtualHost>

Now Restart xampp and access 127.0.0.1



http://localhost works but 127.0.0.1 does not work in windows 
localhost - Virtual host installation not working
Unable to resolve localhost, 127.0.0.1 or local IP address ...
Localhost working but IP address and 127.0.0.1 but working


127.0.0.1 not working windows 10,  127.0.0.1 not working,  localhost working but ip address not working,  localhost not working,  127.0 0.1 not found, 127.0.0.1 localhost,  localhost not working in windows 7, 127.0 0.1 this site cant be reached