Re: [PHP] how to execute a remote command from php [done]
- Original Message - From: "Sethi, Samir (IDS DM&DS)" <[EMAIL PROTECTED]> To: "Victor Alvarez" <[EMAIL PROTECTED]> Sent: Monday, September 27, 2004 5:47 PM Subject: RE: [PHP] how to execute a remote command from php Exactly, I had to generate keys for nobody and now I am able to execute remote commands. Thank you so much. Victor. I think when you execute the command it is run as user nobody. You may need to generate keys for the nobody account and update the authorized keys on the remote system. Samir. -----Original Message- From: Victor Alvarez [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 12:35 PM To: [EMAIL PROTECTED] Subject: [PHP] how to execute a remote command from php Hello, Since last week I am trying to execute a remote machine command from php without success. Since ssh ask for a password, I managed to use ssh with dsa authentication so it's possible to call the remote command without password and only with one line: ssh -l victor 192.168.129.211 -i /root/.ssh/id_dsa "whoami". It works perfectly from command line but I have nothing if I try to do the same from php: exec("ssh -l victor 192.168.129.211 -i /root/.ssh/id_dsa \"whoami\"",$results); $results is empty after the execution. I wonder if somebody could answer this question. I have found no solution googling it. Thank you. Regards, Victor. If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php5 built-in soap - apache performance & wsdl generation
Hello, I'm successfully playing with php 5 and Its built-in soap but I still have a couple of questions. The most important one is regarding the performance. It is something I also found using php 4 and nusoap. Most of the time for a call is being spend on loading the code. Aprox 0.25 sec per code line. This could be a problem if you have a lot of code for your server. Why Apache is loading all the code for each call? Is It possible to configure Apache to load the Soap Server just once? Second one is regarding wsdl generation. I unsuccessfully tried to find a tool to do it. I gave a try to Webservice Helper (jool.nl) and I didn't find the result convenient for my purpose. Is there any simple and useful tool to automatic generate the wsdl? I finally did it manually from scratch. Thank you very much in advance. Kind regards, Victor.
[PHP] how to install phpize and php-config?
Hi, I'm afraid I'm not sure about how to install phpize and php-config. I used to install php using rpms, but this time I downloaded php5 from php.net and configure it with the following options: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-soap The installation runs fine but phpize and php-config are required to install eaccelerator and now I don't know if I should add the pear module to the above line or It should be done another way. locate phpize returns: /usr/src/php-5.0.4/scripts/phpize.m4 /usr/src/php-5.0.4/scripts/phpize.in /usr/src/php-5.0.4/scripts/phpize locate php-config returns: /usr/src/php-5.0.4/scripts/php-config.in /usr/src/php-5.0.4/scripts/php-config but I don't have the executables in /usr/local/bin, as usual. What should I do? What about php from the command line? What can I do to install the usual /usr/local/bin/php? Thanks in advance, Victor.
[PHP] wsdl cache?
Hello, I am experiencing a lot of difficulties working with Apache 5.0.4 and wsdl. I can publish a wsdl and work with it, but as soon as I want to add a new method to the wsdl, I have to change the directory to be able to use it. In some way, Apache kept the information for the wsdl and I am not able to update it! Could anybody explain me why and how could I avoid this problem? Thanks. Kind Regards, Victor.