+ Reply to Thread
Results 1 to 5 of 5

Thread: running gcc on server

  1. #1
    wizkid is offline x10Hosting Member wizkid is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    25

    running gcc on server

    could anyone please tell me how(if possible) i can run gcc on my server.
    actually i wanted to compile a c program on my server
    i tried using exec(), and shell_exec() function but none worked. it just showed permission denied.
    the smallest of errors give the greatest of the headaches

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: running gcc on server

    I can predict that the answer will be a straight out no, it just leaves the servers way too open to attack or abuse. You cannot use the exec() command because you current PHP level will not allow it. Obviously, if they allowed everyone to compile their own things onto the server it would be a serious security risk.

  3. #3
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: running gcc on server

    The only package which has exec and shell_exec() is phpv3, and they allow it temporarily for MediaWiki installs. That is pretty much it.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  4. #4
    wizkid is offline x10Hosting Member wizkid is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    25

    Re: running gcc on server

    i could actually run some of the commands on my server such has unpacking a tar file , directory listing etc.
    i did try installing gcc on some other folder (othe than usr/bin), but i think i didnt had the privilgegs to use make command.
    if Someone could please tell if i can run any compiler from my server it will be greatly appreciated.
    the smallest of errors give the greatest of the headaches

  5. #5
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: running gcc on server

    Quote Originally Posted by wizkid View Post
    i could actually run some of the commands on my server such has unpacking a tar file , directory listing etc.
    i did try installing gcc on some other folder (othe than usr/bin), but i think i didnt had the privilgegs to use make command.
    if Someone could please tell if i can run any compiler from my server it will be greatly appreciated.
    Pretty much any compiler will require Exec or ShellExec since it has to run an executable.

    I should point out as well that even if you -do- manage to get it to run, it'll likely cause a high resource usage suspension and end up killing your site for a while.


    That being said, unpacking a tar file is probably similar to unpacking a zip and can be done via cpanel anyways, so that'd make sense to be allowed. Same goes for a directory listing - can do that via PHP if you wanted.


    But unless you're using an x10 VPS, you won't be able to run any compiler without it also causing a high resource suspension. For more information I'd file a support ticket, although the answer's likely going to be "exactly -what- do you need this for?" followed by "No."


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

+ Reply to Thread

Similar Threads

  1. Free Teamspeak2 Virtual Private Server (VPS)
    By lokiklown in forum Gamer's Lounge
    Replies: 8
    Last Post: 01-03-2009, 06:12 PM
  2. email incoming and outgoing server can't be found
    By ysm79 in forum Free Hosting
    Replies: 2
    Last Post: 05-01-2008, 01:00 PM
  3. Replies: 0
    Last Post: 11-26-2007, 02:07 PM
  4. Replies: 1
    Last Post: 10-31-2007, 10:44 AM
  5. PHP Server Status.
    By Nathan in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 07-12-2005, 08:47 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