Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th September 2012, 22:27
rcamies rcamies is offline
Junior Member
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy mod_ruby problems on openSuSE 12.2

HI,

I've tried current IspConfig (1.0.4.6) 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
Reply With Quote
Sponsored Links
  #2  
Old 10th September 2012, 08:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by rcamies View Post
has anyone necountered the same and found a solution (besides not installing ruby. It's not needed for IspConfig, I know).
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th September 2012, 10:34
Wisdown Wisdown is offline
Member
 
Join Date: Aug 2012
Posts: 82
Thanks: 7
Thanked 2 Times in 2 Posts
Default

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 test.pl)
Quote:
$url = "http://$ENV{SERVER_NAME}$ENV{URL}";
$ip = "$ENV{REMOTE_ADDR}";
print <<ENDOFTEXT;
HTTP/1.0 200 OK
Content-Type: text/html

<HTML>
<HEAD><TITLE>Perl Funcionando!</TITLE></HEAD>
<BODY>
<H4>TESTE!</H4>
<P>Tudo OK <a href="$url">$url</a></P>
<P>IP da Conexao $ip</P>
<H5>;-p!</H5>
</BODY>
</HTML>
ENDOFTEXT
exit(0);
Ruby (save as test.rb)
Quote:
class TestController < ApplicationController
def index
render :text=>"The index action"
end
def about
render :text=>"Testing app v1.0"
end
end
Python (save as test.py)
Quote:
print ('Content-type: text/html\r\n\r\n' )

print ('<HTML><HEAD><TITLE>Python Sample CGI</TITLE></HEAD>')
print ('<BODY>')
print ("<H1>Python 3 Funcionando</H1>")

print ('</BODY></html>')
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 by Wisdown; 10th September 2012 at 11:32.
Reply With Quote
  #4  
Old 10th September 2012, 11:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

Quote:
I dont know if is same issue i got, but the extra features arent working on debian 6 too.
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 "hello.pl in the cgi-bin folder of the website with this content:

Code:
#!/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 hellp.pl
chown web1:client0 hello.pl

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

http://www.yourdomain.com/cgi-bin/hello.pl

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

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

Code:
puts "Hello world"
set correct user and permissions:

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

and open the url http://www.yourdomain.com/hello.rbx in your browser and you will see the test "Hello World" in the browser.

Python:

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

Code:
def index(req):
  return "Hello World";
and open the url http://www.yourdomain.com/hello.py in your browser and you will see the test "Hello World" in the browser.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 10th September 2012, 12:32
Wisdown Wisdown is offline
Member
 
Join Date: Aug 2012
Posts: 82
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
1) Perl: Did you put the perl code into the cgi-bin directory as required and accessed it trough cgi-bin?
Nope, for me was think ispconfig already did it on install

Quote:
2) Thats "ruby on rails" code for a rails application server and nothing to be executed in a apache webserver.
This explain why dindt worked on IIS too.

Quote:
3) Do you have mod_pythoin installed and did the file had the correct .py ending?
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.
Why?

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:

PC
Certificate (SSL)
Support online
Addons
Manuals
etc...

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.
Reply With Quote
  #6  
Old 10th September 2012, 12:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

Quote:
Nope, for me was think ispconfig already did it on install
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.

Quote:
looking in all tutorials from here and other sites.
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.

Quote:
So for get this goal, first i need be able to provide samethings like big hosts does here (php, perl, ruby, tomcat, etc...)
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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 10th September 2012, 13:24
Wisdown Wisdown is offline
Member
 
Join Date: Aug 2012
Posts: 82
Thanks: 7
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by till View Post
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.
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.

Quote:
Originally Posted by till View Post
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.
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...


Quote:
Originally Posted by till View Post
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.
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..."

Quote:
Originally Posted by till View Post
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.
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 by Wisdown; 10th September 2012 at 13:43.
Reply With Quote
Reply

Bookmarks

Tags
apache, ispconfig, mod_ruby, opensuse, ruby

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
opensuse 11.4 ispconfig3 dovecot problems anubisg1 HOWTO-Related Questions 1 13th June 2011 18:58
OpenSuSE 11 How-to problems baldur2630 Installation/Configuration 1 1st October 2008 13:16
Problems with installation on openSUSE 10.2 douglaslopezt Installation/Configuration 3 24th August 2007 22:04
Opensuse 10.2 installation PROBLEMS!!!!! AmieGibson Installation/Configuration 1 7th April 2007 14:18
Empty Recycle Bin jon335 General 40 6th May 2006 11:56


All times are GMT +2. The time now is 03:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.