Question

Can't get perl scripts to execute

https://github.com/frankusrs/Wakaba is my current project, I have made it to step 4 of the installation process, where it wants me to access wakaba.pl from my browser. it is supposed to execute, however all that seems to happen is it displays the contents of the file or attempts to download it. Any help would be appreciated.

Currently on Debian 8


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The installation steps in that repo seem to assume that your webserver is already configured to run perl CGI scripts. This isn’t the case out of the box. With Apache, there are a few things you’ll need to do. First, enable handling CGI scripts by adding this to your Apache VirtualHost:

<Directory "/var/www/html">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    AddHandler cgi-script .pl
    Order allow,deny
    Allow from all
</Directory>

Then enable the CGI mod and restart Apache for your changes to take effect:

  1. a2enmod cgi
  2. service apache2 restart

Remember to make sure that the www-data user has correct permissions for the files as well.

You can find more information about using CGI scripts with Apache in this article:

While it targets Ubuntu, it will be very similar for Debian.

So that issue got resolved, I believe I am having an issue related to step 3 now, I am very inexperienced with sql and am not entirely sure what this error is asking of me.

Software error:

No SQL settings defined in the configuration at config_defaults.pl line 8. BEGIN failed–compilation aborted at config_defaults.pl line 154. Compilation failed in require at /var/www/html/wakaba.pl line 19. BEGIN failed–compilation aborted at /var/www/html/wakaba.pl line 19

Alright, going to try that now, I’ll let you know the results