By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,361 Members | 1,929 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,361 IT Pros & Developers. It's quick & easy.

installation, debugging

P: n/a
(I am posting from a web interface- google groups, yet the message is
not appearing on the group, so am posting again, if you get two of the
same kindly ignore one)

1)I get startup error messages:
"cannot load c:\php\php_curl.dll - the specified file cannot be found"
although the file is very much there at exactly that location
Not only for this file but for many extension files like php_mysql.dll,
php_oracle.dll, php_mssql.dll, php_exif.dll etc.

2)the extensions_dir setting is "c:\php" without an ending backslash.

3)The php.ini file is residing at c:\php

4)The php.ini file in c:\windows has all extensions disabled so it does
not look as though that php.ini file is the source of the messages

5)There is a extension entry for php_win32api.dll which also gives a
not found error.
Is it the older version of php_win32std.dll, php_win32service.dll and
php_win32scheduler.dll files which are present but
their names are not there by default in the php.ini ?

************************************************** ************************************************
6)How do I debug PHP like you can debug Java in Eclipse or NetBeans and
C/C++ in MS Visual Studio?
************************************************** ************************************************

7)database access through odbc works.

8)How do I install PHP as both a CGI extension under Apache 2.0.5x and
as a module (php5apache2.dll with a LoadModule in httpd.conf)

Sep 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
hi ,Joseph S.

first you have to be sure where is the php.ini actually the good way to
make it avilable for your system is to
1- put your php.ini file in the C:\php directory
2- right click on my Computer ->properties->Advanced Tab Environment
Variable , Under system variable chooes Path and double click to see
the editable area. At the Varaible value add this (;C:\php) (don't
forget the semicolon at the begining ) ->OK-> OK -> restart your
computer
3- delete php.ini file if it reside in the Windows directory.

4- if you are using binary version of PHP 5 you will find (ext)
directory under your C:\php directory
so you may need to open your php.ini file and make theis line like this

extensions_dir = "C:\php\ext"

and for this reason you was getting this err (cannot load
c:\php\php_curl.dll ) and other extension

now to debug PHP i can advise you to download this IDE Packge
http://www.waterproof.fr/

(PHPEdit) its very powerFull software that support all php functions
and more while the latst version is 1.2.3.159
http://www.waterproof.fr/products/PHPEdit/download.php

database access through odbc works ????? what is this ?
about the point # 8

actually i didn't know any method for running PHP as BOTH CGI AND
module in the same time but the setting for the CGI ADD these three
line at the end of httpd.conf
# For PHP 4
#--------------------------------------------
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .php3
Action application/x-httpd-php "/php/php.exe"
#--------------------------------------------
OR

# For PHP 5
#--------------------------------------------
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .php3
Action application/x-httpd-php "/php/php-cgi.exe"

#--------------------------------------------

To install it AS Apache module you may instead need to add these three
lines

# For PHP 4 do something like this:
#----------------------------------------------------
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .php3
PHPIniDir "C:/php"
#----------------------------------------------------

OR

#For PHP 5 do something like this:
#----------------------------------------------------
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php .php3
PHPIniDir "C:/php"
#----------------------------------------------------

Sep 20 '05 #2

P: n/a
Hi,
thanks for the reply.

badr wrote:
hi ,Joseph S.

first you have to be sure where is the php.ini actually the good way to
make it avilable for your system is to
1- put your php.ini file in the C:\php directory
already there
2- right click on my Computer ->properties->Advanced Tab Environment
Variable , Under system variable chooes Path and double click to see
the editable area. At the Varaible value add this (;C:\php) (don't
forget the semicolon at the begining ) ->OK-> OK -> restart your
computer
3- delete php.ini file if it reside in the Windows directory.
Good idea, doing that straight away.
4- if you are using binary version of PHP 5 you will find (ext)
directory under your C:\php directory
so you may need to open your php.ini file and make theis line like this

extensions_dir = "C:\php\ext"

and for this reason you was getting this err (cannot load
c:\php\php_curl.dll ) and other extension
I had extensions_dir="C:\php" and all the extensions were present in
c:\php, I had copied them into the c:\php directory as per instructions
in the help.
After changing the setting to c:\php\ext also, it is not stopping the
messages!
funny. The php.ini is now only in c:\php on my computer.

now to debug PHP i can advise you to download this IDE Packge
http://www.waterproof.fr/
downloading it soon
database access through odbc works ????? what is this ?
typing mistake - I wnated to post a question but got answered before i
posted- this remianed
about the point # 8

actually i didn't know any method for running PHP as BOTH CGI AND
module in the same time but the setting for the CGI ADD these three
line at the end of httpd.conf


Yes, I agree that it is probably not possible to use PHP simultaneously
in both modes. My reason for doing that was that I thought that
debugging requires apd in pear, which needs PHP installed as a CGI
binary. Now that I have found three separate good debuggers - gubed,
dbg from dmitri dmitrienko, and PHPEdit, I do not need apd at the
moment. SO I am continuing with PHP as an Apache module

btw, I got "configuration error" when i tried doing both
simultaneously.

Regards,
Joseph S.

Sep 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.