+ Reply to Thread
Results 1 to 5 of 5
Like Tree2Likes
  • 2 Post By Dead-i

Thread: System() disabled? Need help installing

  1. #1
    FrozenTime's Avatar
    FrozenTime is offline x10Hosting Member FrozenTime is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    United States
    Posts
    84

    System() disabled? Need help installing

    Supers Simple Blog Script

    After creating the SQL database and successfully connecting to it with the script, I tried the next setup step where you enter preferences, but got the following error:

    Warning: system() has been disabled for security reasons in (path)/setup.php on line 145
    Warning: system() has been disabled for security reasons in (path)/setup.php on line 156
    Warning: system() has been disabled for security reasons in (path)/setup.php on line 222

    the line for one of the errors above for example is is:
    system("chmod -R 777 \"$SET0/blogImages\" ");

    Is there a way to fix that?
    Please press the button below if I helped!
    Or give me an internets anyways :D

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: System() disabled? Need help installing

    As the error message states, the function is disabled for security reasons. It will not be enabled.

    There is a PHP function, chmod(), but it is not recursive. Also, the system will start throwing 500 errors if you set directory permissions to 0777. They have to be 0755.
    Nothing is always absolutely so.

  3. #3
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: System() disabled? Need help installing

    No. There's no way to enable system() without endangering the entire environment (and there are, unfortunately, people who will deliberately mess up the system for their own purposes, even if it only works for a few minutes or hours -- that's long enough for them to get what they came for). That being said, you can probably figure out what the setup script is doing and replicate most of the actions manually. You can change file and folder permissions through cPanel or an FTP client.

    One little problem, though -- 777 is going to result in a 500 error. Files in your public_html (or www) directory have a max permission of 644 and folders max at 755, again for security reasons.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  4. #4
    FrozenTime's Avatar
    FrozenTime is offline x10Hosting Member FrozenTime is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    United States
    Posts
    84

    Re: System() disabled? Need help installing

    Alrighty then, thanks for the quick reply!

    Edit: I guess I could try and install it manually, but I don't know too much about php so it'd take a really long time and there's a good chance it won't work, so I think I'll just look for a better script. Thanks
    Last edited by FrozenTime; 09-04-2011 at 04:54 PM.
    Please press the button below if I helped!
    Or give me an internets anyways :D

  5. #5
    Dead-i's Avatar
    Dead-i is offline Community Advocate Dead-i has a spectacular aura about
    Join Date
    Aug 2011
    Location
    United Kingdom
    Posts
    1,448

    Re: System() disabled? Need help installing

    If your site is not hosted on x10Hosting (maybe x10VPS or something?) then you can edit your PHP.INI and remove 'system' from the disabled_functions list.
    dinomirt96 and karimirt47 like this.

+ Reply to Thread

Similar Threads

  1. Safe_Mode Disabled and Open_Basedir Disabled
    By kwamektd63 in forum Free Hosting
    Replies: 2
    Last Post: 04-21-2011, 07:49 PM
  2. While installing Exponent CMS it says File upload Disabled....
    By himanshuarora198889 in forum Free Hosting
    Replies: 3
    Last Post: 01-26-2011, 06:20 AM
  3. Installing Windows 98 as your secondary operating system.
    By kevinandskyforever80 in forum Computers & Technology
    Replies: 7
    Last Post: 07-24-2010, 02:58 AM
  4. CMS says file upload disabled while checking system requirement
    By himanshu arora in forum Free Hosting
    Replies: 3
    Last Post: 11-14-2009, 06:10 AM
  5. Warning: system() has been disabled...
    By albNio in forum Programming Help
    Replies: 6
    Last Post: 07-16-2009, 10:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers