Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 24th, 2002, 05:26 PM
djcybex djcybex is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 12 djcybex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to djcybex
maybe something wrong in httpd.conf

Hello!

I tried to run gzip from php script with
exec(gzip /var/www/site/test.php)
system(gzip /var/www/site/test.php)
but it doesn't work

i have tried in many ways also with full paths
exec(/usr/bin/gzip /var/www/site/test.php)

it never returned me anything...no error...nothing
i have even tried

$out = system("ls -la 2>&1");
print($out);

and

$out = system("/usr/bin/ls -la 2>&1");
print($out);

if i tried backtick `
$out = `ls -la`;
then i got error:
Warning: Cannot execute using backquotes in safe mode in /var/www/site/test2.php on line 2


I have checked php.ini if there is some restriction for these functions but nothing....

I am desperate...is there anything wrong on my server..maybe in httpd.conf...I checked it but i am no linux expert so i rather don't tuch things i don't know...

please help!

Thank you

Last edited by djcybex : March 24th, 2002 at 05:41 PM.

Reply With Quote
  #2  
Old March 24th, 2002, 09:39 PM
djcybex djcybex is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 12 djcybex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to djcybex
found the solution
in httpd.conf this was on:
php_admin_flag safe_mode ON

now i set it OFF and it is working!

yepee!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > maybe something wrong in httpd.conf


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway