Posts by tjfayaz120

    Hi I have php-switcher installed on my IMSCP, it works well however I cannot get the default php.ini settings to be read!


    I am using php 5.6 in /opt/phpswitcher/php5.6/ and the php.ini is /opt/phpswitcher/php5.6/etc/php/php.ini


    I have verified the ini in use with php_ini_loaded_file() and I have configured my max upload file size from 2M to 50M BUT it's still stuck on 2M! Verified with ini_get('upload_max_filesize').


    I have restarted php 56fpm (service psw5.6-fpm restart) and apache too. But still it is saying 2M, why is it not reading my changes? The /opt/phpswitcher/php5.6/etc/php/php.ini looks correct and sets the value to 50M (once only).


    there must be some simple explanation here but I cannot see it, please can someone help?

    Ok so after trying all sorts I gave up. Proxied this perl site to another machine using nginx to host it which actually works.


    So it's not a problem right now, shame it didn't work but it's the only perl site I have on the system so not such a big deal.


    I appreciate all the help that's been offered though thanks

    ok thanks, I added it exactly as you said it works!


    turns out there must be a problem with my sql-ledger since the upgrade because it's that that gives a 500 error. So now at least I know the perl part with apache is working!


    thanks for you help, I'll post back when or if I can work out why my perl code is refusing to work after the upgrade. I get 500 error on my login.pl, has not been changed and worked before. I wonder if the imscp upgrade removed some packages or dependencies? Not sure it ever worked on the command line but just tried it since running it in a browser just results in 500 error and nothing in logs of any use.


    perl login.pl
    Can't locate bin/xterm/login.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at login.pl line 120

    ok me too! I corrected perms on my test.pl and it works inside /cgi-bin now


    but still does not work in htdocs even though I have added the addhander option in the correct place. So how can I make it handle .pl in htdocs? I don't understand why it worked before but not now.

    just to re-itterate my perms are correct (executable etc.) and the code is also fine (with header output). Was working 100% on imscp 1.1 but not not working since I went to 1.3.10.


    eagerly awaiting news - you guys are so good to help :)

    Hi thanks but perl scripts don't even work in cgi-bin either. I copy my test (which just prints something to screen) into cgi-bin and go to it but same error.


    I modified /etc/apache2/sites-enabled/my.site.co.uk.conf
    and added this into the vhost previously which worked, also also re-added and restarted apache.


    AddHandler cgi-script .pl


    why does it not work now? I must have missed something?

    Hello I wonder if someone can shed some light on my problem. I just upgraded my IMSCP from 1.1.x to 1.3.10 and all went smoothly no errors. All sites work fine EXCEPT my perl website (sql-ledger). Previously I had


    AddHandler cgi-script .pl


    in the htdocs section of /etc/apache2/sites-enabled/my.site.co.uk.conf


    and I re-added that and restarted apache but I'm getting these errors and the site will not run. My server now seems unable to execute perl scripts since the upgrade.


    [cgid:error] [pid 3923:tid 140546228057856] [client 192.168.1.3:57042] End of script output before headers: test.pl


    I have a full backup of my previous install, but I don't want to have to go back to it since everything else has gone so well - what do I need to do to make IMSCP able to execute perl applications? FYI my test.pl (I'm using as a basic test for now) also it does not work in the cgi-bin folder.


    Please help!


    Thanks