Consolidate the php version server or command line
up vote
0
down vote
favorite
In Commandline
$which php
/usr/local/bin/php
$php -v
PHP 7.2.10 (cli) (built: Sep 14 2018 07:07:08) ( NTS )
On Apache check phpinfo();
apache2handler
Apache Version Apache/2.4.33 (Unix) PHP/7.1.16
I don't understand how apache decides the php path.
How can I make the apache to use the same php as commandline??
apache-http-server php
add a comment |
up vote
0
down vote
favorite
In Commandline
$which php
/usr/local/bin/php
$php -v
PHP 7.2.10 (cli) (built: Sep 14 2018 07:07:08) ( NTS )
On Apache check phpinfo();
apache2handler
Apache Version Apache/2.4.33 (Unix) PHP/7.1.16
I don't understand how apache decides the php path.
How can I make the apache to use the same php as commandline??
apache-http-server php
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In Commandline
$which php
/usr/local/bin/php
$php -v
PHP 7.2.10 (cli) (built: Sep 14 2018 07:07:08) ( NTS )
On Apache check phpinfo();
apache2handler
Apache Version Apache/2.4.33 (Unix) PHP/7.1.16
I don't understand how apache decides the php path.
How can I make the apache to use the same php as commandline??
apache-http-server php
In Commandline
$which php
/usr/local/bin/php
$php -v
PHP 7.2.10 (cli) (built: Sep 14 2018 07:07:08) ( NTS )
On Apache check phpinfo();
apache2handler
Apache Version Apache/2.4.33 (Unix) PHP/7.1.16
I don't understand how apache decides the php path.
How can I make the apache to use the same php as commandline??
apache-http-server php
apache-http-server php
asked Nov 19 at 16:31
whitebear
159310
159310
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Check your Apache configuration file. There are a couple of things in it that may be used to point to where PHP resides. The first directive is PHPIniDir
which may be set to tell Apache where PHP resides.
The other directive is LoadModule php7_module
which tells Apache where to find the PHP module Apache should use.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Check your Apache configuration file. There are a couple of things in it that may be used to point to where PHP resides. The first directive is PHPIniDir
which may be set to tell Apache where PHP resides.
The other directive is LoadModule php7_module
which tells Apache where to find the PHP module Apache should use.
add a comment |
up vote
0
down vote
Check your Apache configuration file. There are a couple of things in it that may be used to point to where PHP resides. The first directive is PHPIniDir
which may be set to tell Apache where PHP resides.
The other directive is LoadModule php7_module
which tells Apache where to find the PHP module Apache should use.
add a comment |
up vote
0
down vote
up vote
0
down vote
Check your Apache configuration file. There are a couple of things in it that may be used to point to where PHP resides. The first directive is PHPIniDir
which may be set to tell Apache where PHP resides.
The other directive is LoadModule php7_module
which tells Apache where to find the PHP module Apache should use.
Check your Apache configuration file. There are a couple of things in it that may be used to point to where PHP resides. The first directive is PHPIniDir
which may be set to tell Apache where PHP resides.
The other directive is LoadModule php7_module
which tells Apache where to find the PHP module Apache should use.
answered Nov 19 at 18:03
Dave
16515
16515
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376737%2fconsolidate-the-php-version-server-or-command-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown