exe problem again

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: exe problem again

Post by susrisha »

the safe mode is turned off. I have seen it in phpinfo page which i uploaded on to the host.

Here is what i am doing right now:

1. Only for the upload module, i am putting the upload action directed to my local server.
2. Am doing all the conversion in my local server.
3. uploading the converted files using ftp to the main server.
4. redirecting the user to the main site.
User avatar
The_Anomaly
Forum Contributor
Posts: 196
Joined: Fri Aug 08, 2008 4:56 pm
Location: Tirana, Albania

Re: exe problem again

Post by The_Anomaly »

I guess I just find it hard to believe that you can have full SSH access, and you're still somehow being blocked from using certain functions. You should be able to completely control your server, even to the point of reinstalling PHP or Apache.

I mean, how can they restrict you, if you have full SSH root access?
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: exe problem again

Post by php_east »

no, i think hosts do not allow shell exec for security reasons. SSH is merely access, it is does not imply you get automatic shell execute. it has not do do with safe modes, its way above that.

you can perhaps request for special permission to execute from your host provider.
you need to talk to them. there is not much choice for you.
they may charge you slightly more for this service. or they may recommend you acquire a dedicated server/ VPS.

another way is to do the exec elsewhere on another host and shuttle your files to/from.
this other host will of course be selected based on shell exec capabilty.

then a little added PHP will be needed, but at least you can get it to run.
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: exe problem again

Post by php_east »

The_Anomaly wrote: I mean, how can they restrict you, if you have full SSH root access?
that root is not the same as their ( host ) root or ultimate in the case of shared server.
Post Reply