Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : how to run perl scripts in nginx



Threaded Mode | Print  

 how to run perl scripts in nginx (7 Replies, Read 22747 times)
astrosanthosh
Group: Member
Post Group: Newbie
Posts: 5
Status:
I am trying to run perl script in lemp pack but its giving some error, please let me know how to configure nginx to run perl in webuzo. thanks
IP: --   

how to run perl scripts in nginx
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Hi,

You can install the Perl scripts from the Webuzo Enduser Panel

http://www.softaculous.com/apps

If your script requires any custom configurations to the NGINX server, you can edit the conf file located at /usr/local/apps/nginx/etc/conf.d/common

Make sure you restart the NGINX services once you make the changes.

Please let us know if you need any further information.

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

how to run perl scripts in nginx
astrosanthosh
Group: Member
Post Group: Newbie
Posts: 5
Status:
ok thanks. I am getting "Error: No such CGI app" error. do i need to change path of perl script ?
IP: --   

how to run perl scripts in nginx
astrosanthosh
Group: Member
Post Group: Newbie
Posts: 5
Status:
Issue fixed with these SSH commands
yum update
yum install nginx make automake gcc gcc-c++ fcgi-perl wget
yum install nginx fcg-perl wget
chkconfig --add nginx
chkconfig nginx on
IP: --   

how to run perl scripts in nginx
astrosanthosh
Group: Member
Post Group: Newbie
Posts: 5
Status:
One more problem, I am unable to redirect non-www to www, when I post this "server {
    listen      80;
    server_name  example.com;
    return      301 http://www.example.com$request_uri;
}"

where to paste this?
IP: --   

how to run perl scripts in nginx
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Quote

Issue fixed with these SSH commands
yum update
yum install nginx make automake gcc gcc-c++ fcgi-perl wget
yum install nginx fcg-perl wget
chkconfig --add nginx
chkconfig nginx on


You are no longer using the NGINX binary provided by Webuzo.
Please remove the system applications that you have installed using the YUM command.

Restart all of the services from the Webuzo Enduser Panel.
Guide : http://webuzo.com/wiki/Restart_services

You can remove / install system applications by a click using Webuzo.
Guide : http://webuzo.com/wiki/System_Utilities

Quote From : astrosanthosh August 11, 2014, 7:30 am
One more problem, I am unable to redirect non-www to www, when I post this "server {
    listen      80;
    server_name  example.com;
    return      301 http://www.example.com$request_uri;
}"

where to paste this?


Webuzo installs NGINX with the default configurations.
As notified earlier, any custom configurations should go in the file /usr/local/apps/nginx/etc/conf.d/common


Hope it helps :)


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

how to run perl scripts in nginx
astrosanthosh
Group: Member
Post Group: Newbie
Posts: 5
Status:
I have added it to common file but when i try to restar nginx, its giving error and redirect is also not working, then i have added it to webuzoVH.conf then its giving redirect loop error
IP: --   

how to run perl scripts in nginx
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Quote From : astrosanthosh August 11, 2014, 8:24 am
I have added it to common file but when i try to restar nginx, its giving error and redirect is also not working, then i have added it to webuzoVH.conf then its giving redirect loop error


Check the logs to learn more about the error.
/usr/local/apps/nginx/var/log


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 19, 2024, 5:34 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.023