0

I have a local server running PHP-GCI 5.3.0, but when I run phpinfo() it shows me normal information, but extensions.

There are nothing about extensions, and I'm using its normal ext folder.

Could this be related to my folder having spaces? (i.e. this is my php.ini C:\Arquivos de programas\Winco\Winconnection4\php.ini)

I need to do something different to load extensions while using CGI?

This is my php.ini:

[PHP] zend_extension="ext/php_xdebug-2.0.5-5.3-vc6.dll"
register_globals=Off
safe_mode = on
cgi.force_redirect = Off
extension_dir="ext"
session.bug_compat_warn=Off;

#ATIVANDO A COMPACTAÇÃO DA PAGINA
#zlib.output_compression = On

error_reporting = E_ALL & ~E_NOTICE

display_errors = on

extension=php_sqlite3.dll

1 Answer 1

1

Here a couple of pointers:

  • first of all, are you sure you are editing the right php.ini file ? there could be several of those on your computer (for instance, one in the windows/system32 directory ; and another one in the PHP installation directory) ; phpinfo() says in the output which php.ini file is loaded ; make sure you are modifying the right one ;-)
  • When using zend_extension to load a Zend Extension, you should use an absolute path ; see Xdebug - Installation
  • what about using an absolute path for extension_dir ?
  • If I remember correctly, you should use ";" not "#" for comments in .ini files

If you try launching PHP via the command line, do you get any error ? Same in Apache's log file ?

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

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.