mod_ruby problems on openSuSE 12.2

Discussion in 'Installation/Configuration' started by rcamies, Sep 8, 2012.

  1. rcamies

    rcamies New Member


    I've tried current IspConfig ( on OpenSuSE 12.2 (After making a image with clonezilla of my running OpenSuse 12.1 config). while I'm capable of getting it working, There's one problem lingering.

    I can successfuly complie mod_ruby, but after installation, Apache won't start and I get an error about "ruby_dln_librefs" not defined.

    I couldn't find any possible solutions on the net and found mod_ruby to be unmaintained for three years now. I suspect it having to do with ruby 1.9 being experimental in mod_ruby 1.3.0, and the current version of Ruby (1.9.3) used by the distro not being compatible.

    Unfortunately, since I've got only one system running, and I reverted back to my 12.1 image (which works perfectly well), I can't do any more testing.

    has anyone necountered the same and found a solution (besides not installing ruby. It's not needed for IspConfig, I know).

    As far as I found out, It's not working on latest releases of Fedora either, so maybe IspConfig should be checking if it is installed and not offer the option on the pannel if it isn't. If it is installed and selected, a wrong conf/vhost file for apache may be generated, resulting in a failure to start the site or arpoache as a whole.

    with kind regards,
    René Camies
  2. falko

    falko Super Moderator ISPConfig Developer

    Yes, I've encountered the same problem and therefore left out mod_ruby in the Perfect Server tutorial for OpenSUSE 12.2. Anyway, the recommended distro for ISPConfig is Debian/Ubuntu.
  3. Wisdown

    Wisdown Member

    I dont know if is same issue i got, but the extra features arent working on debian 6 too.
    Tried on 2 setups:

    1 - 1 Dedicated Server with all stuff
    2 - Multiserver Scenario

    I tried test using this:

    Perl (save as
    Ruby (save as test.rb)
    Python (save as
    Reading around the internet, seems is like ZendFramework, need have an shared space for all users grab the libraries and get this working, but not sure, i stoped reasearch about this for focus in other problems.
    Get this features will be my last researchs, i will try get the tomcat up too, but not sure if gonna get all working like i wish.
    Last edited: Sep 10, 2012
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It is unlikely that its related as debian and opensuse are very different.

    Regarding your tests, perl ruby and python are working fine here on a debian perfect setup, I downloaded the original vmware image from howtoforge without any modifications which is the exact copy & paste install of the published guide.

    Reagarding your tests:

    1) Perl: Did you put the perl code into the cgi-bin directory as required and accessed it trough cgi-bin?

    2) Thats "ruby on rails" code for a rails application server and nothing to be executed in a apache webserver.

    3) Do you have mod_pythoin installed and did the file had the correct .py ending?

    How to test perl, ruby and python on a ispconfig server:

    Here are the instructions on how to test perl, python and ruby:

    Perl: Ensure that cgi is enabled in the site settings, then create a file " in the cgi-bin folder of the website with this content:

    #!/usr/bin/perl -w
         # Tell perl to send a html header.
         # So your browser gets the output
         # rather then <stdout>(command line
         # on the server.)
    print "Content-type: text/html\n\n";
         # print your basic html tags.
         # and the content of them.
    print "<html><head><title>Hello World!! </title></head>\n";
    print "<body><h1>Hello world</h1></body></html>\n";
    then run:

    chmod +x
    chown web1:client0

    (change user and group to match the user and group of the website) on the file and enter:

    in the browser. You will see the output "Hello World!"

    Ruby: Create a file "hello.rbx" in the web folder with this content:

    puts "Hello world"
    set correct user and permissions:

    chmod +x hellp.rbx
    chown web1:client0 hello.rbx

    and open the url in your browser and you will see the test "Hello World" in the browser.


    Python support was not implemented in ispconfig at the time the debian 6 setup was written, so it is included in newer guides like the ubuntu ones only. To enable python on a debian 6 server run:

    install libapache2-mod-python
    /etc/init.d/apache2 restart

    To test it, create a file "hello py" in the web folder of the site

    def index(req):
      return "Hello World";
    and open the url in your browser and you will see the test "Hello World" in the browser.
  5. Wisdown

    Wisdown Member

    Nope, for me was think ispconfig already did it on install

    This explain why dindt worked on IIS too.

    I got a lot of mods installed, looking in all tutorials from here and other sites.

    My goal is have an webserver able to run all kind of application for small user.

    Simple in my country there many hosts enterprises, actually very cheap, since our internet speed sux...
    So many people here pay around US$ 12,00 for have:

    10 GB webspace
    5 database of 5 gb each (total 25 GB for databases - this limit is for avoid "hackers" store lot of stuff as binary inside mysql and avoid the webspace limit for example)
    5 mails 1 gb each
    Unlimited bandwith *

    Total Space from HD (40GB per user)

    Max upload capped to 100 kbps

    And this runing linux with all kind of support, tomcat, perl, python, etc...

    For me, as enduser, the mostly cheapest ISP charge me around US$ 200,00
    For have:

    1 IP Dedicated
    Upload between 300kbps and 600 kbps (mostly time stay on 300 kbps)

    So i think this show how unfair and hard is for enduser try become a smallhost..
    And i dont saying nothing about power energy, my power energy account come US$ 150,00 more expensive while i`m trying get this working...

    I`m trying get this working for who know make some money (or at least recover what i already spended), but for now my expenses become:

    US$ 200,00 (ISP)
    US$ 150,00 (Power Energy)

    Total of those monthly expenses: US$ 350,00

    The list have more things, like:

    Certificate (SSL)
    Support online

    But i`m focusing on try get the montlhy fees payed by my future users at least...

    So for get this goal, first i need be able to provide samethings like big hosts does here (php, perl, ruby, tomcat, etc...)
    Second i need be more cheapest...

    If i charge my future users for around US 10,00 for 40GB HD space like the big hosts does, i will need at least 35 users (and 1400GB free on HD ) for pay my current bills with "structure"..
    I have no idea how many users my PC will handle, but i hope i can get at least 200 users (my limit of harddisk space is 4TB - then there another problem here), for this become profitable.
    Then i dont see any problem in become a user supporter (the one who pay the website subscription here), buy your modules, etc.. But first i need grab some money instead only spend like i`m doing on last 2 months trying this "perfect" setup working...

    The tests i posted before, i did using IIS on Windows 2008, except by ruby on rails, all others tests worked perfectly, i have an free license of Windows 2008 from University, but only for academic use...

    I have tested other solutions like plesk, cpannel, etc... But they fail on dont accept users like me behind a NAT...
    I recognize your great work here, making this opensource, and trying help people, this is one of the reasons while i keep trying get this working, for be able to retribute as supporter and consumer of your futures plugins.

    I dindt give up yet, i`m trying finish my setup, i hope i can do it this month.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Peerl is setup at install time,so nothing to modify or ah´dd there. I'am talking about the perl hello world test file and the settings you have to enable in the website settings of the ispconfig interface, so not related to the ispconfig install.

    Mixing tutorials will cause a failing setup in most cases. So if you dont are a linux professional with many years of experience yet, dont mix setups, just follow the perfect setup to the letter and you will get a working server out of the box like many thousand users before you. By trying to make things better or remove notices in the logs like I saw in your otherposts which you thought are errors but which were just notices and absolutely ok, you can destroy a setup.

    Which is provided by the perfect setup guides out of the box, except of python support as I explained above. Tomcat is not supported by ispconfig and though not part of thevguides, but you wnt see any tomcat users in shared hosting setups normally as tomcat is used for large business sites only which have a dedicated server anyway,so you would install tomcat on a server without controlpanel to run just this one site.

    Why do you want to host your server at home or in the office instead of renting one in a datacenter? You get a Core i7 server with 2x 3TB harddisks and 16GB Ram and 100Mbit internet connection for about 65 USD a month. Unlimited bandwidth and electricity included.
  7. Wisdown

    Wisdown Member

    Yeah i`m following the manual, manual says for get more users i need use FasCGI + Suexec, this is the default i`m using, and always enabling all options, to pearl, and other stuff.

    This is where VMWare save me with snapshots, i got many times everything destroyed after try any other guide...
    The last destruction happened when i was following one guide here to enable antivirus check on ftp uploads...
    My ftp stopped work, without any info on logs, so the snapshot saved me.
    And after setup something, i start all kind of tests again, i test mails, ftp, all software on the list from another post (all kind of cms, ecommece, etc..) for be sure everything is working, keeping an eye on the logs, if there no problem i keep going trying get more features, in an error, i try fix while logs give me some info, if there no info, snapshot is my last resource and then i discart the features which dont work on my scenario...

    Dindt know tomcat is only for large business, but is good know it, for can deal with users, when they asked like something:

    "You dont have tomcat support, while host X or Z or all other bigger hosts have..."

    Having the host on my home i have the control.
    On previous year i hired one VPS from UK for six months, around US$ 180,00, with nice upload, something around 6 mbps, etc..
    Got some clients, and was good, not profitable, but at least i was getting my personal websites hosted free (since my clients was paying for me in the end), but then, noone know the truth or can confirm this, seems the ISPs here started does an boycott / censorship, and then many websites (outside of Brazil) wasnt working sometimes, this includes my VPS hired... (Some ISPs claimed as hacker attack...)

    I dont need say i lost all my few clients... My ISP here on Brazil says is UK host fault, asking for the support on UK they sayed is Brazilian ISP fault...
    For test i did an subscription VPS of one month in USA, and checked UK VPS was fine... But not usefull for me...

    I got sued for some clients and since then i have learned / got trauma in use something outside of my country...

    Paying for an host here dont gonna become profitable for me...
    Becoming a host if any client mine try sue me, i can do same with my ISP, but cant do it against hosts in other country.
    Or in other words, i have the power to try solve the things fast.

    I`m freelancer DBA (MSSQL), and try get this working on my home would be a source of fixed income, instead every week need try get an new contract.
    Last edited: Sep 10, 2012
  8. reason8

    reason8 Member

    I've been running ispconfig 3 on opensuse for years now. I just upgraded from opensuse 11.4 to 12.1 and noticed 12.2 does not have the mod_ruby functionality.
    What is the best way to move from opensuse to debian/ubunto?
    the /etc/passwd, /etc/group files seem to be the most critical to the system running with appropriate permissions.

    Can I just copy the contents from the old opensuse into the new debian/ubuntu?
  9. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    The best way is to backup your server (you´ll find several threads in this forum regarding files / directories), setup a new server with debian and import your backup.

Share This Page