# Can we run ruby codes (Heatmap) in PHP/Apache running server

**URL:** <https://www.ruby-forum.com/t/can-we-run-ruby-codes-heatmap-in-php-apache-running-server/74235>\
**Category:** Ruby\
**Created:** [November 2, 2006, 6:43am UTC](https://www.ruby-forum.com/t/can-we-run-ruby-codes-heatmap-in-php-apache-running-server/74235 "2006-11-02T06:43:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@rajug](https://www.ruby-forum.com/u/rajug)\
**Post date:** [November 2, 2006, 6:43am UTC](https://www.ruby-forum.com/t/can-we-run-ruby-codes-heatmap-in-php-apache-running-server/74235/1 "2006-11-02T06:43:18Z")

</div>

Hello ruby users,

I have a project in PHP/MySQL installed in \*NIX server with Apache. Now  
I have prepared the heat maps using Ruby on my local system. It is  
working properly in my local system. Now i want to install this heat map  
creating facility for my PHP project pages. Is it possible to install  
ruby in my server so that i could upload the ruby files to create heat  
map? If possible, please let me know what should i do for this.

Actually how can i manage that problem? Can i install ruby, ImageMagic  
and others in my apache running server?

Please help me or suggest me how i can do this. If you are not getting  
what i mean please ask me.

Thanx you all in advance.

With Regards  
Raju Gautam

---

<div class="post-metadata">

**Author:** ![rajug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@rajug](https://www.ruby-forum.com/u/rajug)\
**Post date:** [November 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/can-we-run-ruby-codes-heatmap-in-php-apache-running-server/74235/2 "2006-11-07T10:54:39Z")

</div>

Raju Gautam wrote on 02.11.2006 06:43:

> and others in my apache running server?  
> Can you execute programs on this server?  
> Can you run system command from php?  
> Can you run CGIs?  
> Is your webspace chrooted or jailed?

A first fast try would be to know which OS your server uses.  
Then use for example an available LiveCD of the OS and compile Ruby for  
it with paths set for webserver. Copy the Ruby runtime files to your  
webspace.  
A good choice would be to compile a static ruby runtime version, because  
it is a bit tricky to setup the environment to use dynamic libraries in  
your webspace.

But your webspace can also be restricted that it won’t be possible to  
run any programs.

So it depends on provider.

---

<div class="post-metadata">

**Author:** ![rajug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@rajug](https://www.ruby-forum.com/u/rajug)\
**Post date:** [November 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/can-we-run-ruby-codes-heatmap-in-php-apache-running-server/74235/3 "2006-11-07T10:54:40Z")

</div>

Markus K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> But your webspace can also be restricted that it won’t be possible to  
> run any programs.

Actually, it might jeopardize your account as well; installing binaries  
might not be allowed. Check your TOS, not just if it’s technically  
possible.

lg, Bernd
