Skip to main content

Apache version

Using a Centos 6 or 7 server, how to check the current version of Apache?

httpd -v

This command will return a string that is similar to the following:

Server version: Apache/2.4.6 (CentOS)
Server built:   Nov 16 2020 16:18:20

If you want to find where the httpd binaries are located use the following:

whereis httpd

This command will return something like:

Composer PHP version part 2

As outlined in an earlier article composer php version, when installing the latest version of Drupal the Plesk version and the server version can be different.  In plesk, the version of PHP is 7.3.18, whereas, on the Centos server a check through Terminal (php -v) shows PHP 7.1.33 (cli).

When attempting to install Drupal 9 through composer, the following errors will be shown:

Centos server restart

I'm receiving a server not found when logging in to Plesk from shell or Terminal.  Specifically the error message I'm receiving is

Can't connect to the server

My first reference for this fix is to run the command 

sudo service httpd restart

Running this command you will see the following in Terminal

composer php version

Updating Drupal from 8.7.10 to 8.8.x or 8.9.x has seen a significant change as it has now moved into 9.x.  It has integrated more with composer, and you can be caught by fatal errors occurring during the update process.  One of these errors for me was the php version.  

Subscribe to Centos 7