Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-03-11 16:55:45

eforth
Member
Registered: 2015-03-11
Posts: 5

Help with nginx setup

Whenever I navigate to the my site the following is displayed:

Cannot connect to database. If you are installing application please use /index.php/install/install url. If you keep getting this error please check that application can write to cache folder and cgi.fix_pathinfo = 1

the nginx setup is based on the following:

https://livehelperchat.com/nginx-config … -132a.html

server {
    listen          80;
    server_name     mydomain.com;
    root           /var/livehelperchat;

    location ~* (^(?!(?:(?!(php)).)*/(albums|bin|var|lib|cache|doc|settings|pos|modules)/).*?(index\.php|upgrade\.php)$) {
        include        /etc/nginx/livehelperchat_fastcgi_params;
        fastcgi_pass   unix:/var/run/php5-fpm.sock;
        fastcgi_index  index.php;
        fastcgi_param  PATH_INFO  $query_string;
        fastcgi_param  SCRIPT_FILENAME /var/livehelperchat/$fastcgi_script_name;
    }

    #Allow hotlinking to normal and thumb size images
    location ~* (normal_|thumb_|^/design|^/cache|^/var/storagetheme)(.*)\.(gif|jpe?g?|png|mp3|svg|otf|woff|eot|ttf|ogg|wav|bmp|htm|swf|css|js|swf|pdf|ico)$ {

        ## ***: add expires headers...
        # favicon is only stored in 1 dir, the design one; But browsers ask for it in the root

        if ($http_user_agent ~* "(WebReaper|wget|SiteSucker|SuperBot|Mihov Picture Downloader|TALWinHttpClient|A1 Website Download|WebCopier|Download Ninja|Microsoft URL Control|GetRight|Arachmo|MJ12bot|Gaisbot|Anonymous|Yanga|Twiceler|psbot|Irvine|Indy Library|HTTrack)" ) {
            return 403;
        }

        if ($http_referer ~* (stockingteensex.info|cbox.ws|teensos.net|dpstream.net|tagged.com|kaskus.us|gorilladatingservice.info|taringa.net|discuss.com|craigslist.org|poringa.net)) {
            return 403;
        }

        #sendfile off;
        #aio on;
        directio 512;

        expires max;
        access_log off;
        root /var/livehelperchat;
    }

    # Do not allow to hotlink full size images except our self and major search engines
    location ~* \.(gif|jpe?g?|png|bmp|swf|css|js|svg|otf|eot|ttf|woff|swf|mp3|ogg|wav|pdf|ico|txt)$ {

        ## ***: add expires headers...

        valid_referers none blocked server_names ~(livehelperchat.com|google.|reddit.|bing.|yahoo.);
        if ($invalid_referer) {
            return 403;
        }

        if ($http_user_agent ~* "(WebReaper|wget|SiteSucker|SuperBot|Mihov Picture Downloader|TALWinHttpClient|A1 Website Download|WebCopier|Download Ninja|Microsoft URL Control|GetRight|Arachmo|MJ12bot|Gaisbot|Anonymous|Yanga|Twiceler|psbot|Irvine|Indy Library|HTTrack)" ) {
            return 403;
        }

        if ($http_referer ~* (stockingteensex.info|cbox.ws|teensos.net|dpstream.net|tagged.com|kaskus.us|gorilladatingservice.info|taringa.net|discuss.com|craigslist.org|poringa.net)) {
            return 403;
        }

        #sendfile off;
        #aio on;
        directio 512;

        expires max;
        root /var/livehelperchat;
    }

    location / {
        rewrite "^(.*)$" "/index.php?$1" last;
    }
}

Offline

#2 2015-03-11 17:01:46

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Help with nginx setup

Hi really not sure,

Try to enter url address like
index.php/install/install

In any case i ques you will have to dig deeper just.

Also you can try to enable this, perhaps will help
https://livehelperchat.com/during-some- … -215a.html

Offline

#3 2015-03-11 17:08:45

eforth
Member
Registered: 2015-03-11
Posts: 5

Re: Help with nginx setup

Thanks for the quick response.

When i try to navigate to index.php/install/install, this is what I receive:

You do not have permission to access the module "install" and use "install" function

Offline

#4 2015-03-11 17:09:28

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Help with nginx setup

You are migrating chat to nginx or doing fresh install?

Offline

#5 2015-03-11 17:10:58

eforth
Member
Registered: 2015-03-11
Posts: 5

Re: Help with nginx setup

fresh install

Offline

#6 2015-03-11 17:12:10

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Help with nginx setup

So then really out of idea big_smile

Offline

#7 2015-03-11 17:38:18

eforth
Member
Registered: 2015-03-11
Posts: 5

Re: Help with nginx setup

I think I may have used an existing installation. I'm going download a fresh copy of the source.

Offline

#8 2015-03-11 17:40:19

eforth
Member
Registered: 2015-03-11
Posts: 5

Re: Help with nginx setup

Yup, that was the issue, I was using an existing installation. Sorry about that.

Offline

#9 2015-03-12 07:19:26

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Help with nginx setup

Offline

Board footer