Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on API as Apache in the Shared & Semi-Dedicated forum
Is there any way that the server can have its API as Apache, a friend/acquaintance asked me about Jaguar and he wanted some things and ...

  1. #1
    JPC Member
    Join Date
    Jan 2008
    Posts
    1

    API as Apache

    Is there any way that the server can have its API as Apache, a friend/acquaintance asked me about Jaguar and he wanted some things and everything but that showed up as good. I checked and found out its CGI.

    He said he wants it as Apache because he wants full .htaccess control, can you do that in CGI?

    THANKS!

  2. #2
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    As far as I know there is not any restrictions about .htaccess

    In fact, I've never heard of such a thing!

    The advantage to running as CGI is that it allows you to have your own personal php.ini for your site to use if the server wide one is not adequate.

    I am not sure why it would be a requirement to have PHP as an apache module...
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  3. #3
    Loyal Client
    Join Date
    Sep 2001
    Location
    Wichita, KS
    Posts
    1,647
    What can having a direct apache module do that a cgi script can't on shared hosting?

    If you need that kind of power, your site is probably too big for shared anyway....

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Are you referring to PHP running as CGI as opposed to mod_php, the Apache module version on PHP? If so, then yes, JPC runs PHP as a CGI and not as mod_php.

    There is very little that you can't do with the CGI version that you can with mod_php. You just have to do some things a little differently. For example, you can't use php_flag and php_value directives in .htaccess but you can use a custom php.ini file to override any settings you wish.

    The only other things that won't work in CGI mode are Apache specific functions, but most of their functionality either doesn't apply outside of the module or can be recreated other ways.

    The advantage of JPC's PHP setup is that scripts run under their owner's user id. This means that, for example, if your script creates files on the server they will be owned by the script owner (you) and not "nobody" and you don't need insecure world writable directories in your account. This also means that you can set your scripts to be readable only to you and they will still work, so if you have sensitive information in your scripts (like MySQL or remote API passwords) you don't have to worry about another user on the server snooping your files.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •