成功安装XAMPP后,无法在浏览器中连接到localhost

我已按照 Ubuntu 12.04上的本指南成功安装了XAMPP 1.5.3,并且没有错误。

$ sudo /opt/lampp/lampp start Starting XAMPP for Linux 1.5.3a... XAMPP: Starting Apache with SSL (and PHP5)... XAMPP: Starting MySQL... XAMPP: Starting ProFTPD... XAMPP for Linux started. 

但是当我在Firefox中打开http://localhost/http://127.0.0.1/ ,我得到了无法连接错误。

在我结果不成功之后,我将httpd.conf的端口从80改为81并尝试打开http://localhost:81/http://127.0.0.1:81/ ,但我得到了同样的结果。

编辑

netstat -tlnp的输出:

 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 23369/mysqld tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 23352/proftpd: (acc tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 20196/dnsmasq tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 929/cupsd tcp6 0 0 ::1:631 :::* LISTEN 929/cupsd tcp6 0 0 ::1:44166 :::* LISTEN 23848/java 

根据netstat的输出,Apache Web服务器无法打开侦听端口。 您应该下载最新版本的XAMPP并按照网站上的说明进行操作。

如果使用默认配置运行XAMPP ,则输出应如下所示:

 whisperity@localdomain:~$ sudo netstat -tlnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 5235/mysqld tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5701/httpd tcp6 0 0 :::21 :::* LISTEN 22965/proftpd: (acc 

首先显示你的c:/ windows / prefetch找到文件httpd.exe缺少下载到putit prefetch文件夹然后msvcr100.dll文件也在system32文件夹中丢失所以这也下载到putit安装wamp或xammp服务器你将获得对话框firebox想要默认浏览器单击否。然后浏览窗口显示找到explorer.exe单击然后按该窗口上的打开按钮。接下来和finsh。 工作得很好……… goodluck。