Prosper202 on nginx webserver, anyone? Need Help

webtrend

New member
Feb 6, 2008
187
6
0
I just finished installing nginx+php-fpm on one of my dedicated servers. It can run all my php scripts fine. However, I can't get prosper202 to run on this system. I have following problem:

If I don't create 202-config.php manually, I get served with a blank page.

If I create 202-config.php manually (with db name, user, password etc), I get following error:

Parse error: syntax error, unexpected $end in /var/www/adservr21/public/202-config/functions.php on line 234

Line 234 in functions.php is the last line in the script and it is a blank line. I have never encountered this type of problems on apache so I am assuming there is some configuration problem with nginx

Can anyone with nginx experience provide some help.

Some Indian Boobies for ya.
AMdmF.jpg


ZUdli.jpg


SGneZ.jpg
 


unexpected $end usually means there's a missing "}" somewhere in that file

you may have cut it inadvertently
 
You are likely missing a " ' ; or }
It's also possible to get that error if you use <? vs <?php if you haven't configured php to recognize it. Although this is less likely since I believe all of prosper uses the <?php openings.


EDIT: just looked at the config file and noticed they don't have any brackets.. so it's likely a missing ' " or ; - also possible to mismatch ' and "
 
I've had prosper running on an ngiNx server without having to touch proser itself

That is what I was hoping for. I really don't want to play with the prosper source code. Are you using the latest version of prosper 1.3.2?

Can you also please post the configuration section that deals with handling of php files? Thanks.
 
I think I figured out what the problem is. The way my nginx and php-fastcgi is currently configured, it does not work if php script is not explicitly declared like this: "<?php"

Prosper202 source code has tons of instances where the php declaration is not explicit, for example "<?". This is what nginx does not like. I would like to fix this by changing the server configuration but I don't know how. Putting characters like <? in google search gives you garbage results (even with quotes). So I can't use google. If someone knows about the solution, I would greatly appreciate them sharing their knowledge.

The other option is to use grep and mass replace "<?" with "<?php". However this might be dangerous since I might break something in the code. I would rather solve this with reconfiguring the web server.