1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installed new version of php but Apache still using the old version

Discussion in 'Main Forum' started by user1800997, Oct 8, 2018.

  1. user1800997

    user1800997 Guest

    I manually installed php 5.4 on Ubuntu 10.04. The old version was 5.3.2. Now if i check the php version it shows 5.4:

    max@ubuntu:/etc/php5$ php -v
    PHP 5.4.0 (cli) (built: Jul 21 2015 14:04:16)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

    But if i load index.php file in /var/www/ the apache still shows that the php version is 5.3.2.

    How to make apache recognize the new php 5.4 version?

    Login To add answer/comment

Share This Page