• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 2.x Branch ‹ General Support (v2.x)
  • Change font size
  • FAQ
  • Register
  • Login

PFC on Nginx

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
8 posts • Page 1 of 1

PFC on Nginx

Postby baldodavi » Wed Jan 23, 2013 6:15 pm

Hi, I'm trying to install PFC 2.0 on Nginx.

I've some issues on data folders creation (users,channels,...).
I do not understand some things:
1. Why pfc search auth folder in server folder and not in server/data (as you can see in attached image)
2. Why pfc fails to create folders on server or data, nginx user can create folders in both places and Ive assigned 777 mod to all directories.

Any idea?
Thanks, David.


Image
baldodavi
New member
 
Posts: 3
Joined: Wed Jan 23, 2013 2:16 pm
Top

Re: PFC on Nginx

Postby baldodavi » Wed Jan 23, 2013 9:24 pm

I've some news.
I've trying to install PFC in same machine using APACHE instead NGINX.
Seems had same problems in generating folders.
Installing on my pc all seems ok.
We are using PHP 5.4.9 version.

Any ideas?
Thanks a lot, David.
baldodavi
New member
 
Posts: 3
Joined: Wed Jan 23, 2013 2:16 pm
Top

Re: PFC on Nginx

Postby phpfreechat » Thu Jan 24, 2013 9:15 am

baldodavi wrote:1. Why pfc search auth folder in server folder and not in server/data (as you can see in attached image)
2. Why pfc fails to create folders on server or data, nginx user can create folders in both places and Ive assigned 777 mod to all directories.


1) Cause it uses rewrite rules defined in .htaccess located in the server/ folder. Here is the file source code: https://github.com/kerphi/phpfreechat/b ... /.htaccess
So it means that you need to have mod_rewrite enable or these rules will not be taken into account. I suppose other kind of configuration is needed on Nginx but as I don't know this software, don't hesitate to shere with us your config it you find something.

2) Don't know why. Could you give me a SSH or FTP access on your server to debug it ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: PFC on Nginx

Postby LukeFlyswatter » Sat Jan 26, 2013 10:30 am

I had a problem with this too, but I don't think it's related to file permissions.
LukeFlyswatter
New member
 
Posts: 1
Joined: Sat Jan 26, 2013 10:08 am
Top

Re: PFC on Nginx

Postby baldodavi » Mon Jan 28, 2013 2:31 pm

Seems related to .htaccess usage and configuration on Apache.
Our admin is sure this application cannot run under Nginx cause usage of .htaccess in application.
We resolved using and internal apache instance interfaced with nginx.

Thanks, David.
baldodavi
New member
 
Posts: 3
Joined: Wed Jan 23, 2013 2:16 pm
Top

Re: PFC on Nginx

Postby phpfreechat » Mon Jan 28, 2013 11:14 pm

baldodavi wrote:Our admin is sure this application cannot run under Nginx cause usage of .htaccess in application.

Sure but i'm sure we could make it work on Nginx cause .htaccess can be translated to Nginx config... If someone know both software he could help us.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: PFC on Nginx

Postby smail01 » Tue Jan 29, 2013 8:40 pm

baldodavi wrote:Our admin is sure this application cannot run under Nginx cause usage of .htaccess in application.


I would fire you admin! And hire me!

Here's nginx conf:

Code: Select all
location /phpfreechat-2.0.5/server {
    rewrite ^/phpfreechat-2.0.5/server/(.*)$ /phpfreechat-2.0.5/server/index.php last;
}



That's all Folks!
smail01
New member
 
Posts: 1
Joined: Tue Jan 29, 2013 7:32 pm
Top

Re: PFC on Nginx

Postby phpfreechat » Wed Jan 30, 2013 4:13 pm

Thank you smail01, do you know if it's possible to parameter Nginx with a .htaccess file equivalent ?
Or are you obliged to insert this configuration in your system's config ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
8 posts • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 4 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub