title: Cant configure LAMP on kali linux
body: <p>Hello guys is me again now I have some problems configuring LAMP </p>
  
  <p>first of all i have install everything but  I cant run test.php to see if php works according to <code>ifconfig</code> command my addr is: <strong>192.168.1.77</strong> So in browser when I try to run <code>192.168.1.77/test.php</code> nothing happens.I follow the instructions in this video to do that. <a href="https://www.youtube.com/watch?v=Lfs0jExxVGE" rel="nofollow">How to set up a Debian LAMP Server</a></p>
  
  <p>Second when I try to change the password on mysql I got this error by the way I can't do anything that has to do with mysql. when I run this command <code>apache2 -v &amp;&amp; mysql -v &amp;&amp; php -v
  </code> I got this error.</p>
  
  <blockquote>
    <p>Server version: Apache/2.2.22 (Debian) Server built:   Feb  1 2014
    21:26:04 ERROR 2002 (HY000): Can't connect to local MySQL server
    through socket '/var/run/mysqld/mysqld.sock' (2)</p>
  </blockquote>
  
  <p>when I try to run this command <code>/usr/bin/mysqladmin -u root password 'mypassword'</code> i got this error.</p>
  
  <blockquote>
    <p>/usr/bin/mysqladmin: connect to server at 'localhost' failed error:
    'Can't connect to local MySQL server through socket
    '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and
    that the socket: '/var/run/mysqld/mysqld.sock' exists!</p>
  </blockquote>
  
  <p>I follow this guide to <a href="https://wiki.debian.org/LaMp" rel="nofollow">LAMP, Linux Apache MySQL PHP</a> But since I have those problems with mysql i can't finish the proper configuration. so thank you very much for any help or comments have and have a nice day.</p>