| View previous topic :: View next topic |
| Author |
Message |
Phree

Joined: 31 Dec 2005 Posts: 254 Location: South Coast, UK
|
Posted: Mon Jan 16, 2006 6:56 pm Post subject: php.ini file... |
|
|
Humpa,
here's one for you! As you may remember, I couldn't get the edit facility to work within my copy of your mms scripts due to not being able to use exec, system or passthru.
I have been onto my webhosts to see if they could help and they have said to create my own php.ini file to sort the problem locally. I'm obviously very pleased with this, but I'm a bit unsure what to do next. I have downloaded the full php.ini from php.net and had a look thru it. I have run a phpinfo.php on my server and part of it reads thus:
| Code: |
disable_functions exec,shell_exec,system,passthru,readfile,escapeshellarg.........
|
and I have also read up a bit and found this interesting quote:
| Quote: |
Note: you cannot use your configuration file to extend the Web server's PHP settings. Only settings in your own php.ini will be used if you have one. If you set only a few settings, all other settings will use the hard-coded values in the PHP interpreter. |
So (to finally get to the point)...Does this mean I can create a new php.ini file, place it in the folder of my mms installation and just have one line that says:
| Code: |
disable_functions shell_exec,system,passthru,readfile,escapeshellarg.........
|
i.e. Take out exec
and this will work? All other php.ini config will be taken from the main installation of php.ini on my server?
Hope this all makes sense and you can "Help me Humpa"
Neil. |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Mon Jan 16, 2006 7:13 pm Post subject: |
|
|
That's what it sounds like.
Can you put the php.ini in any directory? It doesn't have to be in your public_html directory or somesuch?
Also, you have to use "enable_functions = exec" - otherwise it will be disabled still. |
|
| Back to top |
|
 |
Phree

Joined: 31 Dec 2005 Posts: 254 Location: South Coast, UK
|
Posted: Mon Jan 16, 2006 7:19 pm Post subject: |
|
|
Cool
I'll put it in the public_html folder and see if everything works as it should. I have a test install of your scripts on another server so I will see if that works first before putting it over to my main install...
Will let you know how it goes.
Thanks a lot Humpa, you rock!  |
|
| Back to top |
|
 |
Phree

Joined: 31 Dec 2005 Posts: 254 Location: South Coast, UK
|
Posted: Tue Jan 17, 2006 1:46 pm Post subject: |
|
|
Ah well
Tried putting it in the public_html folder - still didn't work. Then the main mms folder - still nothing...Then finally the mms/delete folder and still nothing. I think I raed the server needs rebooting before it will work - but the hosting company won't do that for me Pain in the ass!
I think I'll just forget using the Imagemagick facility altogether  |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Tue Jan 17, 2006 2:03 pm Post subject: |
|
|
| Phree wrote: |
Ah well
Tried putting it in the public_html folder - still didn't work. Then the main mms folder - still nothing...Then finally the mms/delete folder and still nothing. I think I raed the server needs rebooting before it will work - but the hosting company won't do that for me Pain in the ass!
I think I'll just forget using the Imagemagick facility altogether  |
I can't use it either.
gate.com doesn't have image magick installed, and I don't have ssh access |
|
| Back to top |
|
 |
Phree

Joined: 31 Dec 2005 Posts: 254 Location: South Coast, UK
|
Posted: Tue Jan 17, 2006 7:51 pm Post subject: |
|
|
For both of us!
I put a post up in another php forum explaining the problem and I got this reply:
| Quote: |
Typically, if not all, web hosting companies turn off shell accounts and shell script execution from any program.
The only way around this, is if you can figure away to achive your goal with a cron job and your provider allows you to run cron jobs, you may can just ask them to turn it on for you. |
Does that make sense to you? It sure doesn't to me! I can run CRON jobs, but don't know quite what I would want to run... |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Tue Jan 17, 2006 10:23 pm Post subject: |
|
|
I thought you said your webhost was the one to tell you to use a php.ini in your directory.
Have you asked them why it isn't working? I wouldn't think this is something that would work by default, at least I've never been able to do it with any of my webhosts. |
|
| Back to top |
|
 |
Phree

Joined: 31 Dec 2005 Posts: 254 Location: South Coast, UK
|
Posted: Tue Jan 17, 2006 10:29 pm Post subject: |
|
|
| Yep, it was my webhosts that told me to use the php.ini. I think the guy I referred to in my last post didn't really understand what I was trying to do. I haven't been back in touch with my webhosts as yet, but I'm planning on doing so sometime today if I still can't get it working. |
|
| Back to top |
|
 |
|