Welcome Guest, Not a member yet? Register   Sign In
How to configure on Plesk 12
#1

Hello, im trying to install Codeigniter for almost 7 hours on Plesk 12. Well, the installation is correct and the framework loads the welcome controler as it should be but the problem cames with the pretty urls. Plesk is using advanced quantum mechanics which take the php requests and passess them from nginx's FPM. However in order to add the pretty urls you need to add few directives (a bunch).

I found this from nginx's site:

Code:
index index.php
try_files $uri $uri/ /index.php;
location = /index.php {
    #fastcgi_pass unix:/var/run/php5-fpm.sock;
    #fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param  SCRIPT_FILENAME /var/www/vhosts/pcbuilds.gr/httpdocs$fastcgi_script_name;
    include fastcgi_params;
}
location ~ \.php$ {
    return 444;
}
I dont really know which fastcgi_pass should i use. Both of them are downloading an emtpy file. Any ideas on how to make it work?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB