installation, debugging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joseph S.

    installation, debugging

    (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.dl l which also gives a
    not found error.
    Is it the older version of php_win32std.dl l, php_win32servic e.dll and
    php_win32schedu ler.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.dl l with a LoadModule in httpd.conf)

  • badr

    #2
    Re: installation, debugging

    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
    Site dédié à l'univers des équipements résistants à la poussière, à l'humidité et à l'eau pour les usages extrêmes que font subir baroudeurs, professionnels et amateurs de sports en extérieur.


    (PHPEdit) its very powerFull software that support all php functions
    and more while the latst version is 1.2.3.159
    Site dédié à l'univers des équipements résistants à la poussière, à l'humidité et à l'eau pour les usages extrêmes que font subir baroudeurs, professionnels et amateurs de sports en extérieur.


    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"
    #----------------------------------------------------

    Comment

    • Joseph S.

      #3
      Re: installation, debugging

      Hi,
      thanks for the reply.

      badr wrote:[color=blue]
      > 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[/color]

      already there
      [color=blue]
      > 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.[/color]

      Good idea, doing that straight away.
      [color=blue]
      > 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[/color]

      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.

      [color=blue]
      > now to debug PHP i can advise you to download this IDE Packge
      > http://www.waterproof.fr/[/color]

      downloading it soon
      [color=blue]
      > database access through odbc works ????? what is this ?[/color]

      typing mistake - I wnated to post a question but got answered before i
      posted- this remianed
      [color=blue]
      > 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[/color]

      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 "configurat ion error" when i tried doing both
      simultaneously.

      Regards,
      Joseph S.

      Comment

      Working...