VPS侦探论坛

 找回密码
 注册
查看: 9788|回复: 6

安装lnmpa后,出现若干问题。。。请指点

[复制链接]
发表于 2011-4-29 10:28:16 | 显示全部楼层 |阅读模式

1.PHPMYADMIN正常访问,但PUREFTP客户端ftp在访问时出现"504 gateway time-out" ,不如为何,但配置已修改过了,如下:
                include       mime.types;
                default_type  application/octet-stream;

                server_names_hash_bucket_size 128;
                client_header_buffer_size 32k;
                large_client_header_buffers 1 128k;#4 32k;
                client_max_body_size 50m;

                sendfile on;
                tcp_nopush     on;

                keepalive_timeout 60;

                tcp_nodelay on;

                fastcgi_connect_timeout 300;
                fastcgi_send_timeout 300;
                fastcgi_read_timeout 300;
                fastcgi_buffer_size 128k;#64k;
                fastcgi_buffers 2 256k;#4 64k;
                fastcgi_busy_buffers_size 256k;#128k;
                fastcgi_temp_file_write_size 256k;

                gzip on;
                gzip_min_length  1k;
                gzip_buffers     1 64k;#4 16k;
                gzip_http_version 1.0;
                gzip_comp_level 2;
                gzip_types       text/plain application/x-javascript text/css application/xml;
                gzip_vary on;

                #limit_zone  crawler  $binary_remote_addr  10m;


2、在安装完lnmp后,查看phpinfo,发现php运行方式是fast-cgi,但再安装apache支持后PHP运行方式变为APACHE2HANDLER ,不知是不是正常?
3、用lnmpa status查看lnmpa状态时,不知这里面的nginx为何会出现access forbidden,如下所示:
=========================================================================
Manager for LNMPA V0.7  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is runing!
                               Access forbidden!


   You don't have permission to access the requested object. It is either
   read-protected or not readable by the server.

   If you think this is a server error, please contact the [1]webmaster.

Error 403


    [2]localhost
    Thu Apr 28 20:36:39 2011
    Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.2.17

References

   1. mailto:admin@app.com
   2. http://localhost/
* MySQL running (13600)


以上几个问题请军哥或其他兄弟指点明示,谢谢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-4-29 10:31:32 | 显示全部楼层


另再补充两个问题:
1、如何知道安装完lnmpa后,apache是用来处理动态文件,而nginx是处理静态文件的?再次表示感谢
2、php-fpm.conf文件在哪?没找到啊

[ 本帖最后由 gtester 于 2011-4-29 11:58 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-29 11:31:25 | 显示全部楼层

LNMPA 常见问题整理(不定期更新)
如何知道安装完lnmpa后,apache是用来处理动态文件,而nginx是处理静态文件的?
PHP运行方式变为APACHE2HANDLER,应该就是apache处理动态了吧?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-4-29 12:45:40 | 显示全部楼层



1、参考指定贴
2、显示这个就对了
3、可能没权限
4、不用你管,安装好就是自动选择处理
5、lnmpa没php-fpm
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-4-29 15:27:40 | 显示全部楼层

回复 4# 的帖子


1、参考指定贴
请军哥明示哪个帖子,搜索了下只有4个与504相关的,但没解决问题
2、显示这个就对了
3、可能没权限
但已用chmod -R 755设置过了啊。。。。。
4、不用你管,安装好就是自动选择处理
5、lnmpa没php-fpm
网上说504大多是由于php-fpm配置不当可引起504问题,不知是否会与1相关

再次表示感谢

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-4-29 16:09:24 | 显示全部楼层

不知道你看的那个贴子没解决。
403,删文件或改配置了没?
都已经没php-fpm了,还和phpfpm有啥关系
 楼主| 发表于 2011-4-29 16:29:48 | 显示全部楼层

1、504问题解决 记录如下
按照管理员说的操作下就好了在哪说的我没找到)

看了一下是pureftpd管理面板代码的问题,他需要访问/etc/passwd,lnmpa又是限制访问目录。

需要修改/usr/local/apache/conf/extra/httpd-vhosts.conf 把php_admin_value open_basedir 里加上/etc/ 或者吧php_admin_value open_basedir 注释掉。

重启apache就行了。
你好. 步骤是(0548发表):
vi /usr/local/apache/conf/extra/httpd-vhosts.conf
打开文件

/php_admin_value open_basedir
查找php_admin_value open_basedir

i
输入模式

修改成:php_admin_value open_basedir "/home/wwwroot:/tmp/:/var/tmp/:/proc/:/etc/"

/root/lnmpa restart
重启服务.
重启



2、安装完LNMP0.7后PureFTPd无法登陆
需要安装ftp


3、LNMPA中Apache的status问题解决方法
高手请无视,小白可借鉴。

问题描述:

LNMP0.7升级到LNMPA后
运行命令/root/lnmpa status
Apache的status一项会出现错误提示:
/etc/init.d/httpd: line 112: lynx: command not found
或者
Error 403  Access forbidden!


解决方法:
出现lynx: command not found错误提示的需要完成Step1&Step2
出现Error 403  Access forbidden!错误提示的只需要完成Step2

Step1
安装lynx

yum install lynx -y

Step2
运行命令

vi /usr/local/apache/conf/extra/httpd-info.conf


    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from .example.com

改成
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1

重启Apache
service httpd restart

再用/root/lnmpa status或者service httpd status查看Apache状态就是正常的了
还可以用http://youripordomain/server-status访问通过Web查看


知识拓展:
请自行Google"apache server-status"

[ 本帖最后由 gtester 于 2011-5-4 21:17 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 10:54 , Processed in 0.027622 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表