首页 > 阿里云使用lnmp安装typecho后,页面全是空白

阿里云使用lnmp安装typecho后,页面全是空白

纠结,在阿里云自己搭建的lnmp环境,安装typecho怎么也不成功,网上都说是没提前创建数据库,但是我已经提前建好了,还是不能安装。

一、环境:
mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1
nginx version: nginx/1.6.0
PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)
typecho 开发版

二、安装步骤:
1.提前创建了typecho数据库;
2.nginx配置如下:

server {
    listen       80;
    server_name  localhost;

    #charset koi8-r;
    #access_log  /var/log/nginx/log/host.access.log  main;

    location / {
        root   /usr/share/nginx/html/typecho;
        index  index.php index.html index.htm;
        if (-f $request_filename/index.html){
            rewrite (.*) $1/index.html break;
        }
        if (-f $request_filename/index.php){
            rewrite (.*) $1/index.php;
        }
        if (!-f $request_filename){
            rewrite (.*) /index.php;
        }
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    location ~ \.php$ {
         root           /usr/share/nginx/html/typecho;
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index  index.php;
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
         include        fastcgi_params;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}

3、安装步骤:


在输入数据库的相关信息后,点击“创建完毕,继续安装”按钮页面就跳转到空白了。

4、查看了typecho数据库:
一个表也没有,也即没程序正常初始化表。

5、nginx日志:
[26/Jul/2014:13:22:25 +0800] "GET /install.php?config HTTP/1.1" 200 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-"

结束:
测试安装了wordpress,方法也一样,先创建数据库,然后安装成功了。。。各位大大求解!!!


没有权限创建 config.inc.php
手动创建一个放在typecho目录下,内容是文本框里那些


试试加上权限/打开PHP的错误报警/看看MYSQL错误日志


根目录没有写入的权限


你的数据库里没有相应的数据库名。要先建立数据库


首先要手动创建一个数据库并且有一个可控制该数据库的用户,然后你的Typecho博客的文件目录的读写权限要755或以上,我是用的是777。接下来就能成功了

【热门文章】
【热门文章】