I copied php.ini to
/usr/local/apache2/

Now the that file is displaying...

Configuration File (php.ini) Path /usr/local/apache2/php.ini

    Ok,

    now make sure that the domxml extension is enabled in php.ini and that the extension_dir variable in php.ini points to the extension directory with the shared library (domxml.so).

    You don't need the line
    extension=php_domxml.dll
    That's for windows only.
    Just add extension=domxml.so

    Then restart the apache server and check if there is a domxml section in the phpinfo output.

    Do the scripts need register_globals = On ?

    Thomas

      this is the path of 'extension_dir ' in php.ini

      there is also line like
      ;extension_dir = "/usr/lib/php4"
      but it is uncommented.

      ; Directory in which the loadable extensions (modules) reside.
      extension_dir = "./"

      register_globals = off

      actually register_globals was off.

      but i didn't get the line s below..
      now make sure that the domxml extension is enabled in php.ini and that the extension_dir variable in php.ini points to the extension directory with the shared library (domxml.so). ?

        Ok,

        after recompiling PHP you copied the file domxml.so to
        /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429

        activate the extension_dir line and set it to

        extension_dir=/usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
        and then make sure to add
        extension=domxml.so

        to php.ini. Also make sure to disable (comment) the line
        extension=php_domxml.dll

        Then restart the web server and check the phpinfo output and check if any error message is displayed while the web server restarts. If something is wrong with the domxml.so file then you should get an error message that php couldn't load the extension. But I hope that you don't get that error message 🙂

          Thru command line it always gives the error..to start apache(web server).

          I stops it thru command line..but starst it thru Webmin.

          there is no error like 'an error message that php couldn't load the extension'.

          but...
          ok i am sending updated phpinfo() script output again.

            I think we can solve the problem that apache doesn't start from command line. I think that webmin changes some environmental variables and startup variables.

            That needs a modification of the startup script. But that should wait until the domxml extension works.

            Do you still get the error message

            Fatal error: Call to undefined function: domxml_open_file()

            Thomas

              ya.

              it is still displaying that error...

                ok,

                post the phpinfo output again. Additionally, check the apache error log for any error messages about PHP.

                How is the apache2 webmin module configured ?

                Thomas

                  note:file is attached.
                  How is the apache2 webmin module configured ?

                  there is configuration file in the path

                  /usr/local/apache2/conf/httpd.conf to configure webmin module .

                    Seems like the domxml.so module doesn't get loaded.

                    Check the error_log file for any error messages.

                    That file should be in /usr/local/apache2/logs

                    Thomas

                      [root@ns1 register]# tail -f /usr/local/apache2/logs/error_log
                      [Fri Dec 03 17:46:49 2004] [warn] child process 9797 still did not exit, sending a SIGTERM
                      [Fri Dec 03 17:46:49 2004] [warn] child process 10541 still did not exit, sending a SIGTERM
                      [Fri Dec 03 17:46:49 2004] [warn] child process 10542 still did not exit, sending a SIGTERM
                      [Fri Dec 03 17:46:49 2004] [warn] child process 10543 still did not exit, sending a SIGTERM
                      [Fri Dec 03 17:46:49 2004] [warn] child process 10553 still did not exit, sending a SIGTERM
                      [Fri Dec 03 17:46:50 2004] [warn] child process 9760 still did not exit, sending a SIGTERM
                      [Fri Dec 03 17:46:51 2004] [notice] caught SIGTERM, shutting down
                      [Fri Dec 03 17:55:52 2004] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
                      PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429/domxml.so' - /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429/domxml.so: cannot open shared object file: Not a directory in Unknown on line 0
                      [Fri Dec 03 17:55:53 2004] [notice] Apache/2.0.49 (Unix) mod_perl/1.99_08 Perl/v5.6.1 mod_ssl/2.0.49 OpenSSL/0.9.6b PHP/4.3.6 configured -- resuming normal operations.

                      There is /no-debug-non-zts-20020429/
                      but when I gives the command
                      [root@ns1 register]# cd /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
                      -bash: cd: /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429: Not a directory

                      should i again recomplie PHP-4.3.6??

                        Ok,

                        I think I know what happened ... in one of your last posts you wrote that the directory .../extensions doesn't exist. Did you create just ..../extensions or ..../extensions/no-debug-non-zts-20020429 ?

                        I think that no-debug-non-zts-2002042 is a file (domxml.so renamed).

                        Do the following. Remove no-debug-non-zts-20020429 with

                        rm -f /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429

                        That should work if that "directory" is a file.

                        Afterwards create that directory and then copy the domxml.so file from your home directory to that directory.

                        Then restart the web server. I don't think that you need to recompile PHP again.

                        Thomas

                          [root@ns1 no-debug-non-zts-20020429]# ls
                          [root@ns1 no-debug-non-zts-20020429]#
                          there is no 'domxml.so' file.

                          but when i gives the
                          [root@ns1 extensions]# cp /home/sandhya/php-4.3.6/modules/domxml.so /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
                          cp: overwrite `/usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429'? y

                          means that file is there.but it seems invisible. why?

                            Hmmm ... still seems to be a file. Execute the following three commands:

                            rm -rf /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429

                            mkdir /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429

                            cp /home/sandhya/php-4.3.6/modules/domxml.so /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429/domxml.so

                            Thomas

                              [root@ns1 lib]# rm -rf /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
                              [root@ns1 lib]# mkdir /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
                              [root@ns1 lib]# cp /home/sandhya/php-4.3.6/modules/domxml.so /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429/
                              [root@ns1 lib]# cd extensions/no-debug-non-zts-20020429/
                              [root@ns1 no-debug-non-zts-20020429]# ls
                              [root@ns1 no-debug-non-zts-20020429]#

                              🙁

                                domxml
                                DOM/XML enabled

                                DOM/XML API Version 20020815

                                libxml Version 20504

                                HTML Support enabled

                                XPath Support enabled

                                XPointer Support enabled

                                DOM/XSLT enabled

                                libxslt Version 1.0.27

                                libxslt compiled against libxml Version 2.5.4

                                This section is getting displayed in php.ini()

                                🙂

                                  Wrong directory:

                                  [root@ns1 lib]# cd php/lib/extensions/no-debug-non-zts-20020429/

                                  In php.ini the extension_dir is

                                  /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429

                                  But the lines in your last post look like

                                  /usr/local/apache2/php/lib/extensions/no-debug-non-zts-20020429

                                  (see the missing php ater lib)

                                  It seems like the extension_dir variable in php.ini is set to a originally not existing directory.

                                  So I'd suggest to remove
                                  /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
                                  Then change extension_dir in php.ini to
                                  /usr/local/apache2/php/lib/extensions/no-debug-non-zts-20020429
                                  and copy the domxml.so file to that directory.

                                  It doesn't make sense to create a second extension directory if one already exists.

                                  Thomas

                                    it is ok?
                                    if that file is in this path
                                    #/usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
                                    [root@ns1 no-debug-non-zts-20020429]# ls
                                    domxml.so

                                    or should i again change that path to
                                    /usr/local/apache2/php/lib/extensions/no-debug-non-zts-20020429/

                                    which path is ok?

                                      when i run that particular file which contains
                                      $domdoc = domxml_open_file($sectionfile);
                                      $dom = $domdoc->first_child();

                                      Now it gives the error on line '$dom = $domdoc->first_child();'
                                      Fatal error: Call to a member function on a non-object