The latter code snippet prints loads of information. Apache, LiteSpeed or Nginx): Īnd of course you can also use the phpinfo() function: This snippet prints just the name of the server software (i.e. If you just want to know what server software is running then you can you use the $_SERVER array. You can also use a server-side language such as PHP to get information about the web server. You can optionally add the -L ( -location) option to follows any redirects, such as a redirect from HTTP to HTTPS. The -I ( -head) option fetches the headers only, without downloading the page. Refresh the web page to reload all resources for the page.Īlternatively, if you got access to the command line then you can use curl to print the headers.Select the Network tab in your browser’s developer tools.Right-click on a page you want to check and select Inspect from the context menu.In both Chromium-based browsers and Firefox you can get the information as follows: One of the headers is server, and it confirms the server is running LiteSpeed. The response headers are sent by the browser to a client, and they include various bits of information about the server. I have selected the first resource (the main document), and in the right-hand pane you can see the response headers for the resource. The header that shows the web server software is server.įor instance, the below image shows the Network tab in my browser’s developer tools. The first is to look at the response headers the server sends when a page or resource is requested. There are a few different ways to check if your website is powered by LiteSpeed. You can check the actual PHP version via cPanel’s MultiPHP Manager. That is only the inherited PHP version on the server and not necessarily the PHP version your website uses. And as an aside, the page also shows that the PHP version is 5.6.40. Unfortunately, that information is not included on the page. That is the Apache version on the server, but LiteSpeed is used as a drop-in replacement. Note that the page shows that the server is Apache 2.4.51. For instance, here is the server information for my website on our Acai server: Or rather, it always tells you that the server is running Apache, even if it is running LiteSpeed. Unfortunately, the Server Information page in cPanel doesn’t tell you if your server is running Apache or LiteSpeed. We use LiteSpeed on all our Linux shared and premium hosting plans. LiteSpeed is less configurable than Apache but the defaults are designed for speed, without compromising on stability and security. You can get a similar performance with Apache but it requires various tweaks. The main benefits of LiteSpeed are that it is light-weight and fast (the clue is in the name!). Another popular choice is LiteSpeed, which is a drop-in replacement for Apache. For a long time Apache was king but it nowadays has serious competition from Nginx. There are different web servers, each with their pros and cons.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |