Awaiting feedback Need help with setting up on VPS

TriHoang

Founder license
License owner
Joined
Feb 12, 2012
Messages
66
Points
58
Location
TiTank.com
Website
titank.com
So yesterday I decided to move from shared hosting to VPS since perform better and more cost efficient.
I installed nginx, php5-fpm and MariaDB on this VPS and it seem all working.

I am able to upload images but it get an "500 Internal error" on the "/uploaded/" page.
I not able to access admin panel.
When access the website, I need to add /index.php, otherwise, I get "403 forbidden" error.

The url to my website on this VPS is
Code:
http://atlanta.titank.com
http://atlanta.titank.com/index.php
Please help me with this, thank you!
 
Last edited:

TriHoang

Founder license
License owner
Joined
Feb 12, 2012
Messages
66
Points
58
Location
TiTank.com
Website
titank.com
I re-installed fresh OS with nginx + apache2 (proxy setup) + MariaDB.
The problem seem like getting better, I can directly access to my page without "index.php" now and no server error or anything.
However, when I upload an image, it redirect me to "/uploaded/" but nothing happen.
And admin panel is just a blank page.

Please help me again, thank you!
 

TriHoang

Founder license
License owner
Joined
Feb 12, 2012
Messages
66
Points
58
Location
TiTank.com
Website
titank.com
I just enabled error reporting.
And I found this error in "/admin/"
PHP:
Fatal error: Call to private method Handler::redirect() from context 'AdminHandler' in /var/www/admin/includes/classes/class.adminhandler.php on line 47
And I am currently using PHP 5.4.4
 
Last edited:

TriHoang

Founder license
License owner
Joined
Feb 12, 2012
Messages
66
Points
58
Location
TiTank.com
Website
titank.com
Try chnaging private to protected in private function redirect() in class.handler.php
I did it but nothing happen.

PHP:
    protected function redirect($to, $status=301)
    {
        $to = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $to);
        if(php_sapi_name() != 'cgi-fcgi') status_header($status);
        header("Location: $to");
        die();
    }

If you need FTP access (or SSH), I will give you.
 

TriHoang

Founder license
License owner
Joined
Feb 12, 2012
Messages
66
Points
58
Location
TiTank.com
Website
titank.com
So I decided to only use Apache and will set up nginx for storage server once multi-server available.
But now I run into this problem.
After the file finish upload, it redirect to "/uploaded/" but it get "404 Not Found".
And when access the admin panel, after I put in my password and enter, it keep loading and nothing happen.


Please help, thank you!
 
Last edited:

Rodolfo

Chevereto Developer
Chevereto Staff
Joined
Oct 7, 2008
Messages
16,516
Points
237
Location
Chevereto HQ
Website
rodolfoberrios.com
Actually Chevereto works with nginx but the issue with pure nginx is that it doesn't use .htaccess and many goodies from Apache are not present in nginx.

if you want to only use nginx (or Lighttpd, etc) you need to workaround the .htaccess rewrite rules so the server can understand what to do for the URL rewritting.

Best thing, at this time and not just for Chevereto, is use the Apache proxy setup.

Regarding multisvers, they won't need URL rewriting so any server that can run PHP will work.
 
Reactions: TriHoang