Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP - PHP Warning: PHP Startup: in Unknown on line 0

Tags:

php

windows

I installed apache2 and php 5.4.5.

When you start apache this error:

PHP Warning: PHP Startup: in Unknown on line 0

The extension does not work:

; extension = php_intl.dll
; extension = php_ldap.dll
; extension = php_oci8.dll
; extension = php_oci8_11g.dll
; extension = php_pdo_firebird.dll
; extension = php_pdo_oci.dll
; extension = php_pdo_pgsql.dll
; extension = php_pgsql.dll
; extension = php_pspell.dll
; extension = php_shmop.dll

And maybe more.

Extensin dir: extension_dir = "C :/ dev/prog/php5/ext /"

Path: C: \ dev \ prog \ php5

php.ini is copied to C: \ WINDOWS \

ssleay32.dll php5ts.dll and is copied to C: \ WINDOWS \ system32 \

Please simple instructions.

like image 536
cmaxik Avatar asked Aug 15 '12 10:08

cmaxik


2 Answers

upgrade those modules using pecl command

Also, Check extension_dir directive in php.ini

like image 55
amitchhajer Avatar answered Sep 23 '22 05:09

amitchhajer


I had the same problem. The issue is, that these lines are by default in php.ini

; On windows:
; extension_dir = "ext" 

I assumed, that only an uncomment of the second line and Apache restart solves this problem. But it isn't!

I had to type a full path to the ext folder, such as below:

extension_dir = "d:\php-5.4.32\ext"

After this action, and restart of the Apache web server, the problem was solved.

like image 32
Radek Budař Avatar answered Sep 22 '22 05:09

Radek Budař