Re: HP-UX 11 / Apache 1.3.12 / PHP 4.0.2 - include_path error in browser...

From: Date: Sun, 08 Oct 2000 18:17:54 +0000
Subject: Re: HP-UX 11 / Apache 1.3.12 / PHP 4.0.2 - include_path error in browser...
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-197@lists.php.net to get a copy of this message
Christian / Mailing List: Thank you for the info. When you refer to "php directory" (to add php.ini), do you mean the /usr/local/lib/php directory, and I only edit in the line you are saying here? I did this, and it appears to have an effect on the problem, but now a new error message. I added / edited the following lines in /usr/local/lib/php.ini, and copied that file to /usr/local/lib/php: include_path = /usr/local/lib/php:/usr/local/include/php php_include_path = /usr/local/lib/php:/usr/local/include/php Now the error message I am getting in the browser changes to: Warning: Failed opening '/opt/apache/htdocs/test.php' for inclusion (include_path='/usr/local/lib/php:/usr/local/include/php') in Unknown on line 0 There really doesn't seem to be one specific "php" directory (unless you are referring to the /usr/local/lib/php directory). Am I maybe missing something? Earlier, when I was trying to trouble-shooting my install, I saw the following directions in the {PHP Source}/tests/README file: To run the tests, go to the top-level directory and run "./php -f run-tests.php" I ran a "find" throughout my entire machine, and found no executable called "php", only those two directories called /usr/local/include/php, /usr/local/lib/php and the following executables in /usr/local/bin: -rwxr-xr-x 1 root sys 282 Oct 7 23:32 pear* -rwxr-xr-x 1 root sys 464 Oct 7 23:32 php-config* -rwxr-xr-x 1 root sys 593 Oct 7 23:32 phpextdist* -rwxr-xr-x 1 root sys 700 Oct 7 23:32 phpize* Thanks in advance for any info you can offer. - Joe Pantera Christian Lyra Gomes wrote: > > I got the same problem here... And the problem is simpler than it looks! > just copy a php.ini to your php dir and it's done! Dont know why, but , > but it seems that the compilation process dont do this! > > oh... of course... you must have a "php_include_dir = . "or something > similar in your php.ini! > > Christian Lyra > On Sun, 8 Oct > 2000, Joe Pantera wrote: > > > PHP Install Mailing List: > > I am trying to install PHP 4.0 into my HP-UX 11 Apache Servers here. I > > currently use Perl CGI scripts, with calls to my databases with much > > success. Would like to compare PHP to this. Am running into no > > problems installing, but get error message: > > > > Warning: Failed opening '/opt/apache/htdocs/1-1.php' for inclusion > > (include_path='.:/usr/local/lib/php') in Unknown on line 0 > > > > when trying to access php pages from my browser. Any input is welcome > > (detail follows). > > > > My Install: > > > > I followed the generic PHP installation instructions from the php.net > > on-line manual. I use mod_perl, so I combined those instructions with > > what I currently do to setup my current servers (new server config). I > > use gcc to compile and have installed any other tools needed (flex, > > etc...). I ran the following: > > > > mod_perl Apache 1.24 Source tree: > > > perl Makefile.PL APACHE_SRC=../apache_1.3.X/src \ > > DO_HTTPD=1 USE_APACI=1 \ > > EVERYTHING=1 > > > > Apache 1.3.12 source tree: > > > ./configure --prefix=/opt/apache > > > > PHP 4.0.2 source tree: > > > ./configure --with-sybase={Path to $SYBASE} --with-apache=../apache_1.3.x > > > --enable-track-vars > > > make > > > make install > > > > Apache 1.3.12 source tree: > > > ./configure --prefix=/opt/apache --activate-module=src/modules/php4/libphp4.a \ > > --activate-module={PATH to mod_perl source}/src/modules/perl/libperl.a > > > > I get no compiler errors, and the final Apache build tells me the server > > was built successfully. The listing of "httpd -l" (listing Apache > > modules) shows mod_php4.c (as well as mod_perl.c). I uncomment the > > line(s) in httpd.conf in order to allow the server to recognize .php > > files as "PHP4", and I copy php.ini-dist to /usr/local/lib/php.ini. All > > seems OK, until I try to run a simple test PHP script in my browser > > (Netscape / IE). I see the message: > > > > Warning: Failed opening '/opt/apache/htdocs/test.php' for inclusion > > (include_path='.:/usr/local/lib/php') in Unknown on line 0 > > > > HP-UX is pretty much a System V system, and I try to stay away from > > "/usr/local" whenever possible. I see that the PHP install puts > > executables into /usr/local/bin, and creates /usr/local/lib/php and > > /usr/local/include. I added /usr/local/bin to $PATH, but am wondering > > whether I need to do more to get other "non-HP-UX" libraries / includes > > to be recognized via Apache. > > > > - Joe Pantera > > > > -- > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > - > > Joseph F. Pantera Unix, Database & Network Systems > > Administrator > > Gibson Dunn & Crutcher LLP > > home email1: jpantera@earthlink.net > > phone: (213) 229-7673 > > fax: (213) 229-6673 > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > - > > > > -- > > PHP Install Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > > For additional commands, e-mail: php-install-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - Joseph F. Pantera Unix, Database & Network Systems Administrator Gibson Dunn & Crutcher LLP work email : jpantera@gdclaw.com home email1: jpantera@earthlink.net home email2: jpantera@home.com phone: (213) 229-7673 fax: (213) 229-6673 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -

« previous php.install (#197) next »