SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Addict Volitics's Avatar
    Join Date
    Aug 2003
    Location
    US
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I find the version of Apache on a shared hosting?

    Hello SitePoint;

    Question. What is the process for finding out the version of Apache on a shared hosting?

    I am starting a website that needs URL Rewriting. The website is hosted on a GoDaddy shared hosting. I have found a tutorial that says I need to find the version of Apache.

    I called GoDaddy technical support and asked them what version of Apache is being used on the hosting. The technical service rep said that he did not have access to the version of Apache and did not know which version of Apache is being used. Basically, GoDaddy won't tell me the version.

    The phpinfo() function doesn't tell the version of Apache.

    I would appreciate any assistance.

    Thanks.
    .

  2. #2
    SitePoint Wizard gate2vn's Avatar
    Join Date
    Jan 2004
    Location
    Oslo, Norway
    Posts
    1,056
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If they don't tell you, chance that they hide that info in server side too. However, try with this function http://php.net/manual/en/function.ap...et-version.php
    Clustered CloudLinux Hosting | WordPress Hosting |
    Advanced Antispam | Managed Xen VPS
    in US West coast and Asia-Pacific datacenters
    Contact us now on Twitter @vietnap

  3. #3
    SitePoint Addict Volitics's Avatar
    Join Date
    Aug 2003
    Location
    US
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for responding to my question.

    You're right. They have hid it on the server side evidently.

    I ran the apache_get_version() function and here is the response:
    "Fatal error: Call to undefined function apache_get_version() in /home/content/59/4519259/html/ApacheGetVersion.php on line 2"

    I ran the apache_lookup_uri function and got the same response:
    "Fatal error: Call to undefined function apache_lookup_uri() in /home/content/59/4519259/html/sps_forms/ApacheLookUpURI.php on line 2"

    I guess it's going to have to be a trial-and-error process with the URL Rewrite coding.

    Thanks again.
    .

  4. #4
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,395
    Mentioned
    81 Post(s)
    Tagged
    3 Thread(s)
    I have found a tutorial that says I need to find the version of Apache.
    Why not just try the tutorial anyway - if it works you have a suitable version of Apache if it does not work you do not.

  5. #5
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,629
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    ^^yes.

    I'd be really shocked if they were using a version of apache that didn't support mod_rewrite.

  6. #6
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,121
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Check the headers...
    Open the URL in Chrome, press F12, click on Network, Refresh the page, you'll see a bunch of stuff load on the Network section (of the window that opened earlier), click on anything, then click on Headers. Look for Server: under the Response Headers

  7. #7
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    I saw a forum post dated July 2012 that says godaddy was running apache 2.2.13 (at the time).
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  8. #8
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Simple: phpinfo(); will provide ALL the information you can ever need about your server. Since it would also be usable by hackers, be sure to remove the file which calls this PHP function after you get the data (and save it to your computer).

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


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
  •