0

I am trying install Laravel on my company's servers, but I need to make sure the server meets the technical requirements.

How do I check the server that it has

  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

??

2
  • Depends on your access to the server. If you have console access then php -m. If you can upload a php file then use phpinfo() Commented May 31, 2017 at 18:57
  • If you are installing with composer, then getcomposer.org/doc/01-basic-usage.md#platform-packages might help. Commented May 31, 2017 at 22:18

3 Answers 3

2

If you have terminal access, you can just filter the output from the cli info command :

php -i | grep <extension_name>

e.g. php -i | grep mysqli

Sign up to request clarification or add additional context in comments.

Comments

1

Add a page that runs phpinfo():

 <?php
 phpinfo();
 ?>

Then delete the page after you're finished so others can't use it.

Comments

0

Applicable to - any servers (running PHP - CMS)

Rename index.php Because we are checking phpinfo() with index.php. So, rename server CMS provided index.php

$ mv index.php index.php.back

Create index.php file with phpinfo();

$ touch index.php

$ echo "<?php phpinfo(); ?>" > index.php

Now open the URL of your website, you will get to know - the php extensions loading with apache/nginx or whatever web-server you're using for web.

This is different from comman_line php.

For command line php simply check php -m | grep "extension-name"

or php -m

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.