[英]Cant configure LAMP on kali linux
Hello guys is me again now I have some problems configuring LAMP 大家好,我又是我了,我在配置LAMP时遇到了一些问题
first of all i have install everything but I cant run test.php to see if php works according to ifconfig
command my addr is: 192.168.1.77 So in browser when I try to run 192.168.1.77/test.php
nothing happens.I follow the instructions in this video to do that. 首先我已经安装了所有东西,但是我无法运行test.php来查看php是否根据
ifconfig
命令运行,我的地址是192.168.1.77,所以在浏览器中当我尝试运行192.168.1.77/test.php
没有任何反应。该视频中的说明可以做到这一点。 How to set up a Debian LAMP Server 如何设置Debian LAMP服务器
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. 其次,当我尝试更改mysql上的密码时,由于无法执行与mysql有关的任何操作而收到此错误。 when I run this command
apache2 -v && mysql -v && php -v
I got this error. 当我运行此命令
apache2 -v && mysql -v && php -v
,出现此错误。
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)
服务器版本:Apache / 2.2.22(Debian)服务器内置:2014年2月1日21:26:04错误2002(HY000):无法通过套接字'/var/run/mysqld/mysqld.sock'连接到本地MySQL服务器(2)
when I try to run this command /usr/bin/mysqladmin -u root password 'mypassword'
i got this error. 当我尝试运行此命令
/usr/bin/mysqladmin -u root password 'mypassword'
出现此错误。
/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!
/ usr / bin / mysqladmin:在“ localhost”处连接服务器失败错误:“无法通过套接字“ /var/run/mysqld/mysqld.sock”(2)连接到本地MySQL服务器”检查mysqld是否正在运行,并且套接字:“ / var / run / mysqld / mysqld.sock”存在!
I follow this guide to LAMP, Linux Apache MySQL PHP But since I have those problems with mysql i can't finish the proper configuration. 我按照本LAMP指南进行操作,但Linux Apache Apache MySQL PHP但是由于mysql存在这些问题,因此无法完成正确的配置。 so thank you very much for any help or comments have and have a nice day.
因此,非常感谢您提供的任何帮助或意见,并祝您愉快。
Doing a quick search might be able to point you the right direction, did you install this? 快速搜索可能会为您指明正确的方向,您是否安装了此工具?
apt-get install mysql-server
It seems to be complaining about mysqld which is the mysql-server program perhaps try this too: 似乎在抱怨mysqld,它是mysql服务器程序,也可以尝试以下方法:
service mysql start 服务mysql启动
You will see this: 您将看到:
[ ok ] Starting MySQL database server: mysqld ..
[info] Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
Notice how it says mysqld 注意它怎么说mysqld
If that doesn't work try this maybe: 如果这样不起作用,请尝试以下操作:
apt-get install --reinstall mysql-server
Hopefully this helps a bit 希望这会有所帮助
Kali blacklists services by default using sysvinit, so if you've been rebooting it could be tripping you up: 默认情况下,Kali使用sysvinit将服务列入黑名单,因此,如果您一直在重启,它可能会使您绊倒:
http://docs.kali.org/policy/kali-linux-network-service-policies http://docs.kali.org/policy/kali-linux-network-service-policies
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.