[Users] php on jboss

2014-03-24 Thread aditya mamidwar
i need a php file to execute some bash scripts on the server, but when i
integrate the ui-plugin ot the ovirt portal, it does not find path to my
.php file.

I have the HTML where as .PHP residing in the same location, can someone
guide on uploading PHP files on JBOSS server, since ovirt runs on it..

if i want to run a PHP file, where should i save it?

-- 
-Aditya Mamidwar
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] php on jboss

2014-03-24 Thread Greg Sheremeta
JBoss doesn't execute PHP. 

You'll need to setup an alternate server to do this -- perhaps an Apache 
instance. 

Greg 

- Original Message -

 From: aditya mamidwar aditya.mamid...@gmail.com
 To: engine-de...@ovirt.org, users@ovirt.org
 Sent: Monday, March 24, 2014 8:11:01 AM
 Subject: [Users] php on jboss

 i need a php file to execute some bash scripts on the server, but when i
 integrate the ui-plugin ot the ovirt portal, it does not find path to my
 .php file.

 I have the HTML where as .PHP residing in the same location, can someone
 guide on uploading PHP files on JBOSS server, since ovirt runs on it..

 if i want to run a PHP file, where should i save it?

 --
 -Aditya Mamidwar

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] php on jboss

2014-03-24 Thread Greg Sheremeta
I stand corrected: http://www.jboss.org/jbossweb/modules/php.html 

- Original Message -

 From: Greg Sheremeta gsher...@redhat.com
 To: aditya mamidwar aditya.mamid...@gmail.com
 Cc: engine-de...@ovirt.org, users@ovirt.org
 Sent: Monday, March 24, 2014 8:19:05 AM
 Subject: Re: [Users] php on jboss

 JBoss doesn't execute PHP.

 You'll need to setup an alternate server to do this -- perhaps an Apache
 instance.

 Greg

 - Original Message -

  From: aditya mamidwar aditya.mamid...@gmail.com
 
  To: engine-de...@ovirt.org, users@ovirt.org
 
  Sent: Monday, March 24, 2014 8:11:01 AM
 
  Subject: [Users] php on jboss
 

  i need a php file to execute some bash scripts on the server, but when i
  integrate the ui-plugin ot the ovirt portal, it does not find path to my
  .php file.
 

  I have the HTML where as .PHP residing in the same location, can someone
  guide on uploading PHP files on JBOSS server, since ovirt runs on it..
 

  if i want to run a PHP file, where should i save it?
 

  --
 
  -Aditya Mamidwar
 

  ___
 
  Users mailing list
 
  Users@ovirt.org
 
  http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] php on jboss

2014-03-24 Thread René Koch

Hi,

On 03/24/2014 01:11 PM, aditya mamidwar wrote:


i need a php file to execute some bash scripts on the server, but when i
integrate the ui-plugin ot the ovirt portal, it does not find path to my
.php file.

I have the HTML where as .PHP residing in the same location, can someone
guide on uploading PHP files on JBOSS server, since ovirt runs on it..


oVirt uses both - JBoss and Apache. You should place your PHP file in 
html dir of Apache, not JBoss.




if i want to run a PHP file, where should i save it?


Just save it to /var/www/html, which is the default location for your 
Apache webserver and install PHP module.


You should be able to browse to http://ovirt/myfile.php. If not, you 
exclude the path in Apache vhost configuration file ovirt-engine.conf:

ProxyPass /myfile.php !

Hope this helps,
Rene




--
-Aditya Mamidwar


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] php on jboss

2014-03-24 Thread Alon Bar-Lev


- Original Message -
 From: René Koch rk...@linuxland.at
 To: aditya mamidwar aditya.mamid...@gmail.com
 Cc: engine-de...@ovirt.org, users@ovirt.org
 Sent: Monday, March 24, 2014 3:18:56 PM
 Subject: Re: [Users] php on jboss
 
 Hi,
 
 On 03/24/2014 01:11 PM, aditya mamidwar wrote:
 
  i need a php file to execute some bash scripts on the server, but when i
  integrate the ui-plugin ot the ovirt portal, it does not find path to my
  .php file.
 
  I have the HTML where as .PHP residing in the same location, can someone
  guide on uploading PHP files on JBOSS server, since ovirt runs on it..
 
 oVirt uses both - JBoss and Apache. You should place your PHP file in
 html dir of Apache, not JBoss.
 
 
  if i want to run a PHP file, where should i save it?
 
 Just save it to /var/www/html, which is the default location for your
 Apache webserver and install PHP module.

I missed this thread.

You can put custom files under /usr/share/ovirt-engine/files it will be 
available for you at: http:///ovirt-engine/files

Of course we do not support cgi-bin but plain files... but it may address your 
needs.

Please make sure you have your own subdirectory under files, so no conflicts.

 
 You should be able to browse to http://ovirt/myfile.php. If not, you
 exclude the path in Apache vhost configuration file ovirt-engine.conf:
 ProxyPass /myfile.php !
 
 Hope this helps,
 Rene
 
 
 
  --
  -Aditya Mamidwar
 
 
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] php on jboss

2014-03-24 Thread Jiri Belka
On Mon, 24 Mar 2014 09:23:39 -0400 (EDT)
Alon Bar-Lev alo...@redhat.com wrote:

 You can put custom files under /usr/share/ovirt-engine/files it will be 
 available for you at: http:///ovirt-engine/files

unix-style nitpicking...

hier(7):

   /usr   This  directory is usually mounted from a separate
   partition.  It should hold only sharable, read-only data, so
   that it can be mounted by various machines running Linux.

 Of course we do not support cgi-bin but plain files... but it may address 
 your needs.
 
 Please make sure you have your own subdirectory under files, so no conflicts.

j.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] php on jboss

2014-03-24 Thread Alon Bar-Lev


- Original Message -
 From: Jiri Belka jbe...@redhat.com
 To: Alon Bar-Lev alo...@redhat.com
 Cc: René Koch rk...@linuxland.at, engine-de...@ovirt.org, aditya 
 mamidwar aditya.mamid...@gmail.com,
 users@ovirt.org
 Sent: Monday, March 24, 2014 3:32:40 PM
 Subject: Re: [Users] php on jboss
 
 On Mon, 24 Mar 2014 09:23:39 -0400 (EDT)
 Alon Bar-Lev alo...@redhat.com wrote:
 
  You can put custom files under /usr/share/ovirt-engine/files it will be
  available for you at: http:///ovirt-engine/files
 
 unix-style nitpicking...
 
 hier(7):
 
/usr   This  directory is usually mounted from a separate
partition.  It should hold only sharable, read-only data, so
that it can be mounted by various machines running Linux.
 

So?
Why can't html, images and such be placed there?

  Of course we do not support cgi-bin but plain files... but it may address
  your needs.
  
  Please make sure you have your own subdirectory under files, so no
  conflicts.
 
 j.
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users