Centos 5.10 VPS php

Centos 5.10 VPS php,php,apache,centos,vps,Php,Apache,Centos,Vps,我是新来的副总裁。 我在另一个国家有副总裁。我安装了httpd和php,并使用Putty在/var/www中创建了index.php。当我跑的时候 php index.php 它会运行,但当我在浏览器中输入IP时,它会显示连接超时 我还将其粘贴在/etc/httpd/conf/httpd.conf中 AddType application/x-httpd-php .php <VirtualHost *:80> ServerName localhost ServerA

我是新来的副总裁。 我在另一个国家有副总裁。我安装了httpd和php,并使用Putty在/var/www中创建了index.php。当我跑的时候

php index.php
它会运行,但当我在浏览器中输入IP时,它会显示连接超时

我还将其粘贴在/etc/httpd/conf/httpd.conf中

AddType application/x-httpd-php .php
<VirtualHost *:80>
    ServerName localhost
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            AllowOverride All
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
    </Directory>
</VirtualHost>
AddType应用程序/x-httpd-php.php
服务器名本地主机
服务器管理员webmaster@localhost
DocumentRoot/var/www
选项如下符号链接
允许超越所有
选项索引跟随符号链接多视图
允许超越所有
命令允许,拒绝
通融

什么IP?你不应该只输入
localhost
?@wavemode我的意思是从另一台计算机访问。我的VPS位于另一个国家,我通过Putty和WinSCP访问它。