Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    May 2006
    Posts
    8

    Default Server API

    Hey guys,

    Got a new vps, and in my phpinfo page i found that the server api is set to CGI, how do I change it to Apache?

    Andy

  2. #2
    Registered User
    Join Date
    Jul 2004
    Location
    Indiana
    Posts
    4

    Default

    Quote Originally Posted by andyy
    Hey guys,

    Got a new vps, and in my phpinfo page i found that the server api is set to CGI, how do I change it to Apache?

    Andy
    Server API just means that php is run as cgi nothing to do with the server type.

  3. #3
    Member
    Join Date
    May 2006
    Posts
    8

    Thumbs down

    Can you help me with some problem as well

    http://instanthosting.net/newsite -- the site looks fine in IE and firefox(on old server)
    http://4mehosting.com -- if I copy it over to the new vps the site looks great on firefox, but the images go out of place in IE.

    PHP Infos
    http://instanthosting.net/phpinfo.php
    http://4mehosting.com/info.php

    Any suggestions? Or should I ask on some programmers forums.

    Cheers,
    Andy

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Question 1: PHP can run under Apache as a module or as CGI. If it is running as CGI, PHPSuexec is enabled. This means that files that are rendered or created by the users web scripts are owned by the user. If it's run as a module, the files will be owned by the user 'nobody'. Running as a CGI, generally makes for a more secure sever setup.

    Question 2: The sites look identical to me, using IE. That is to say; everything looks correct.

  5. #5
    Member
    Join Date
    May 2006
    Posts
    8

    Default

    http://4mehosting.com looks fine for you n I.E? I've asked many people to check for me and the images are out of place.

    Mind to take a screenshot for me?

  6. #6
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    I apologize. I was expecting something drastic. The info buttons are slightly out of alignment, as is a border at the top of the page. I'd say the most likely cause is faulty html coding. Try running it through a validator.

  7. #7
    Member
    Join Date
    May 2006
    Posts
    8

    Exclamation

    The files and codes are EXACTLY the same on both server.

    Just wondering what might've caused it to happen on the new server.

    Validator: I checked with the w3 validator and only has 1 error which I'll fix.

    http://validator.w3.org/check?uri=ww...doctype=Inline
    http://validator.w3.org/check?uri=ww...doctype=Inline

    Both with the same results.

    Any suggestions? Can it be caused by image software on the server?

Similar Threads & Tags
Similar threads

  1. API Access on Different Server crashing
    By websitedesigner in forum cPanel Developers
    Replies: 8
    Last Post: 10-04-2010, 11:17 PM
  2. Server API?
    By DaveTomneyUK in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-31-2010, 08:59 AM
  3. API for getting server load
    By SunShellNET in forum cPanel Developers
    Replies: 5
    Last Post: 05-29-2009, 12:22 PM
  4. Problem with API (more server)
    By phoenixweb in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 12-07-2007, 06:08 PM
  5. Changing PHP's Server API
    By phantasmp in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-21-2004, 01:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube