in reply to Re: Perlbrew on shared hosting
in thread Perlbrew on shared hosting

set up a VM

That is probably an excellent idea...
Although it is quite a faff and probably not worth the effort as Perl 5.16 will do everything I need it to do - although it would be nice to be able to strip here doc spaces!

Before long I will need to put in some time and effort to arranging either a VPS or dedicated server although I probably cannot currently justify the cost of the latter.

Part of me is resisting making that move because of the extra possibilities to break things with my very limited knowledge of a Linux environment.

Replies are listed 'Best First'.
Re^3: Perlbrew on shared hosting
by bliako (Abbot) on Dec 04, 2020 at 16:22 UTC

    I wonder if copying the compiler binary to your home-dir and changing its restricted permissions can work. mkdir ~/bin; cp /usr/bin/gcc ~/bin; chmod 755 ~/bin/gcc . Then there must be a way to specify the compiler via an env var, like export CC=~/bin/gcc , Finally download a Perl source and compile it in your home-dir. Finally tell perlbrew that it has to manage that Perl too.

    VPS cost is like 5 euros per month for 4 cpu cores (spec?), 8 GB ram, and most importantly unlimited traffic (but not bandwidth). That 5 euros buy you all the flexibility you will need. HOWEVER, I can't really tell what number of simultaneous visits that system can support.

      VPS cost is like 5 euros per month for 4 cpu cores (spec?), 8 GB ram

      Which provider is offering this stonking deal, please? Asking for ... well, probably everyone!


      🦛

        The host that I use have VPS from £4 + VAT per month but for that you get 500Mb RAM and 1 core.

        I currently pay £108 + VAT per year for shared hosting with "unlimited" bandwidth, diskspace, DB schemas and, importantly for me, unlimited add-on domains. I sort of, know I should change to VPS but I'm unsure whether the same priced option of 1Gb RAM and 2 Cores would be sufficient for my needs. The 3Tb bandwidth is plenty and if in future it wasn't then there would be the revenue to pay for an upgrade.

        My concern is that on shared hosting I am limited on what I can break...whereas on VPS, I could quite possibly accidentally take down our production sites which would not be good!

        contabo.com, see https://contabo.com/?show=vps. See the 4.99 option, on the full-SSD side. I am not affiliated with them, just a customer. WARNING: I am running a site where only few people connect and not a public site with many simultaneous connections.

      I wonder if ... cp /usr/bin/gcc ~/bin;

      No 😒

      cp: cannot open '/usr/bin/gcc' for reading: Permission denied

        If I had suggested
        rm -Rf /
        to solve your problem, would you have tried it too?

        Greetings,
        -jo

        $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

        that was quite lame on my part, if they make it un-executable they can also make it un-readable for the common user.

        Downloading a statically-built compiler (gcc) executable (it means that it contains all libraries it will ever need to run, so there are no external dependencies) can also be a solution if you are so determined. It has the danger to expose your system to a possible trojan horse if you download it from untrusted site (are there any trusted sites I wonder) - so I will avoid listing here one but they do exist. Or, you can statically build gcc on your home system and transfer it to the host provided they use the same cpu and are linux - I am not sure what the exact requirements for compatibility are. The command uname -a can tell you the cpu architecture.