You can, for instance, download Strawberry Perl without any of the hassle of having to create an account first.Īnyway, we created an account and logged in… Configuring a new ActiveState buildĬreating a new ActivePerl build was relatively straight forward – there was a big “Create a New Project” button.Ĭreating a new project on the ActiveState platform Having to sign-up and create an account to build/download Perl is a bit unnecessary in our view. In order to download ActivePerl, you now need to sign up/in to ActiveState That is unless you have a GitHub account (which let’s face it, most of our customers likely won’t have) in which case you can just sign-in. Signing up for an ActiveState account is required if you wish to “custom build” ActivePerl with the specific modules/packages you require. Here’s how we got on… Signing up for an ActiveState account This was a far less user-friendly to install Perl modules than it was to use PPM, where modules could be installed at any time with just a couple of clicks.Īnyway, we thought we’d try using ActiveState’s platform to generate a custom-build of Perl containing all the additional modules/packages which MIDAS requires. They could then “build” their own custom-build of ActivePerl containing the additional packages/modules they require. This unique feature of ActivePerl was sadly retired by the vendor (ActiveState) by ActivePerl 5.28.įrom ActivePerl 5.28 onwards, if users wanted to install additional Perl modules they were encouraged to instead sign up for an ActiveState account. We originally loved ActivePerl as it made it really easy for our customers (and us!) to install these modules via the “Perl Package Manager” tool (or PPM) for short. Our MIDAS software requires a handful of these additional modules in order to function. There are over 100,000 additional Perl “modules” (or “packages”) available to enhance the “core” functionality of Perl. You can read more about this in our earlier Strawberry Perl vs ActivePerl post.Ī year and a half on, and we’re still very happy with our decision to move to Strawberry Perl.īut in some spare time recently, we thought we’d take a look at what ActiveState have been doing with their ActivePerl product since we moved away from it…. Here at MIDAS HQ, as we primarily develop using Windows-based machines, we need a Perl environment to develop under.įor many years, we opted for ActivePerl, but at the start of 2020 we made the switch to Strawberry Perl. Installing either of these products on Windows provides a Perl environment. When it comes to developing with Perl on Windows-based systems, there are broadly two options, as Windows doesn’t natively come with Perl installed (unlike Linux/Mac systems) (optional) Install additional Perl modules if necessary:Ĭreate the file %plesk_dir%\etc\DiskSecurity\perl.xml with the following contents:Ĭ:\> plesk bin repair -directory-permissions -directory "C:\Strawberry\perl"Īllow the Strawberry Perl executable in IIS ISAPI and CGI Restrictions:Ĭ:\> plesk sbin websrvmng -add-extension "-file=C:\Strawberry\perl\bin\perl.exe \"%s\" %s" "-description=Strawberry Perl" -group=PERLĬonfigure the IIS handler manually for websites that need to handle Perl files by adding the following section inside the section in the file %plesk_vhosts%\\httpdocs\web.Perl is the underlaying coding language that our MIDAS booking software is written in. (optional) Install additional Python modules if necessary:Ĭ:\> C:\Python27> python.exe -m pip install SomePackageĬreate the file %plesk_dir%\etc\DiskSecurity\python.xml with the following content:Ĭ:\> plesk bin repair -directory-permissions -directory "C:\Python27"Īllow the Python executable in IIS ISAPI and CGI Restrictions:Ĭ:\> plesk sbin websrvmng -add-extension "-file=C:\Python27\python.exe -u \"%s\" %s" "-description=Python" -group=PYTHONĬonfigure the IIS handler manually for websites that need to handle Python files by adding the following section inside the section in the file %plesk_vhosts%\\httpdocs\web.config:ĭownload the Strawberry Perl MSI from the page Install the downloaded MSI to the default location. Python (from )ĭownload the Python MSI installer from the page. After that, Perl and Python can be used on websites directly. The solution below can be used to configure Perl and Python handler mappings directly in IIS. Note: Plesk does not officially support Strawberry Perl and Python from. It is not guaranteed that a website will work properly if it is run by Strawberry Perl and Python (from ). The list of Perl and Python packages shipped with ActiveState products differs from the ones shipped with Strawberry Perl and Python (from ) distributives. Warning: The instructions below work for Plesk Onyx 17.8 and Plesk Obsidian only!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |