php-install Digest 30 Sep 2001 01:05:28 -0000 Issue 481
Topics (messages 4439 through 4450):
Re: variables_order and track_vars
4439 by: Duncan Maitland
Re: invisible page
4440 by: Yasuo Ohgaki
Re: How to install PHP to do the function mail work
4441 by: Yasuo Ohgaki
Re: mail() is not supported in this PHP build
4442 by: Admin
Re: zend_language_parser (make install error)
4443 by: Smirnov
Re: debug - socket
4444 by: Yasuo Ohgaki
Re: Help required to execute .php scripts on Apache web server
4445 by: Yasuo Ohgaki
Re: sablot and iconv
4446 by: Yasuo Ohgaki
Re: Where to find Apache configuration files in Redhat
4447 by: Yasuo Ohgaki
Re: File permissions within my PHP document when running on an Apache web server
4448 by: Yasuo Ohgaki
Re: Error compiling PHP-4.0.6
4449 by: Yasuo Ohgaki
Re: Apache module install issues
4450 by: Yasuo Ohgaki
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
> I think if PHP worked like you described, it's a bug.
> What version are you using?
I am using 4.0.4pl1, it is the RPM from Red Hat 7.1 distribution. I'll
recompile 4.0.6 soon and tell you if I get the same result.
Regards,
Duncan.
--- End Message ---
--- Begin Message ---
Can you see phpinfo()?
Try
<?php
phpinfo();
?>
If you can see page.
Yasuo Ohgaki
Brain_damaged wrote:
> Hello
> I am running php4 on freebsd. am newbie to both.
> I used the SETUP.PHP and phpMYEdit.inc to get the code for me to manage databases.
>
> Those seem to work. I get the code and paste it in a file. When I run the page tho
>it is blank.
> Na Da.
>
> Also when I try to run it as html page I get garbage on the screen. I did as the
>install.txt said to do about Addtypes.
>
> any help is greatly apprecaited.
> thanks
> bd
>
--- End Message ---
--- Begin Message ---
Marcela wrote:
> I want to know, how to install PHP 4.0.6 and do the function mail work. I tried :
>
> ./configure --with-mysql --with-apxs --with-locale --with-pgsql
>
> But the program that have a form to be sent by mail didn't work.
>
Do you have sendmail or sendmail compatible wrappers (for qmail/postfix/etc)
Try
mail -s "Test mail" username
see if you can send and recive mail locally at least.
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Sendmail is installed and works with all other applications. Any other
suggestions?
At 06:20 PM 9/29/01 +0900, Yasuo Ohgaki wrote:
>Admin wrote:
>>The subject says it all --
>>phpinfo shows the path to sendmail as:
>>sendmail_path -t -i
>>After manually editing php3.ini and changing the sendmail_path to
>>/usr/sbin/sendmail -t -i, then restarting Apache, phpinfo still shows the
>>path to sendmail as
>>sendmail_path -t -i
>>Any suggestions on how to fix this?
>
>I think you built your PHP without sendmail (or sendmail wrapper if you
>are using qmail/postfix/etc)
>Make sure you have /usr/sbin/sendmail(/usr/lib/sendmail) that works just
>like sendmail :)
>
>--
>Yasuo Ohgaki
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Thanks a lot for your explanation !
I had exactly the same problem, but by following these guidelines, it
works !
In article <[EMAIL PROTECTED]>, "Craig O'Brien"
<[EMAIL PROTECTED]> wrote:
> Craig O'Brien wrote:
>
> I figured this out. During my configure phase I found that flex was not
> installed. I installed it, deleted the untar'd php package, and
> started over. Not good enough!
>
> If you are making > 2nd time:
>
> make clean make make install
>
> duhhhh.
>
> Cheers, Craig
--- End Message ---
--- Begin Message ---
Ronald Weinrich wrote:
> Hi All,
> I try to install php with debug option on my suse vers.7 linux-box. Can
> anyone tell me how to create a socket ? What "shell -tclsh-" ? to I need,
> how the syntax is and how to configer the output ?
> Thank you in advance
> Ron
>
I think you are better to buy network programming book(s) written for C
if you cannot find one for PHP. Network programming in PHP is mostly the
same as in C.
Then read related PHP manual pages, then you should be able to do what
you want.
Don't forget to include --enable-socket
--enable-sockets Enable sockets support
Do ./configure --help for other options and read manual for details.
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
PHP CGI version should work and shouldn't fail like this if system is
configured properly.
Try
http://jp.php.net/manual/en/install-windows.php
and links can be found in this URL
Yasuo Ohgaki
Murugan K wrote:
> I installed latest php4.0.6 and Apache Web server on my Windows NT worksation
>and added the following directives in the httpd.conf file.
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> While executing .php script , i am getting the following error message
>
> Internal server error
>
> In error.log file ,
> [Wed Sep 26 15:21:37 2001] [error] [client 164.99.145.209] couldn't spawn child
>process: c:/php/ittest/date.php
>
> Any help please
>
> Regards
> K.Murugan
>
>
>
--- End Message ---
--- Begin Message ---
Justin Makeig wrote:
> I'm trying to compile PHP with sablot on Mac OS X (10.0.4). When I use
> the --with-sablot flag (with a variety of direcotries specified) the
> configure script always craps out trying to find an iconv library. I
> installed libiconv 1.7, but I still get the same problems:
>
> checking for Sablotron XSL support... yes
> checking libexpat dir for Sablotron 0.50... no
No expat lib
> checking for Sablotron in default path... found in /usr/local
> checking for SablotSetEncoding in -lsablot... no
No sablot lib
> checking for iconv_open in -lc... (cached) no
No iconv support
> configure: error: iconv not found
>
> Does anyone have any suggestions. I'm really at wit's end.
You need to install libs you need. Read related manual pages to find out
what lib you need to configure PHP properly.
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Jayaprakash wrote:
> Where to find Apache Configuration Files in Redhat 6.2
> I need to compile PHP4 with apache
>
> ./configure -with--apache = path to apache
>
> if apache is installed from an RPM where will it be
>
I think DSO installation is easier with RPM. Use --with-apxs instead. Do
not forget to install apache-devel RPM, you must install devel package
for apxs script.
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Are you running PHP as Apache module, right?
httpd is running as nobody by default. Thus you can only access files as
nobody.
This has been asked many times and I'm sure you'll find useful articles
in archive.
Yasuo Ohgaki
Jack A. wrote:
> I'm having a problem with file permissions within my PHP document when
> running on an Apache web server.
>
> When accessing a perl script or an executable from the cgi-bin directory the
> web server runs the script as the correct user and group id. However then a
> PHP document is accessed within the same directories as any of my other HTML
> documents the web server runs the PHP document as the user "nobody". I
> found this out by calling the PHP function posix_getuid() within this PHP
> document. The problem is that the data files that are own by my account are
> not accessible to my PHP document since PHP is running as user "nobody". I'
> m aware that the Apache web server runs as user "nobody" then switches to
> the owner of the cgi-bin directory when executing a script, so how do I get
> the web server to switch to user "myaccount" when executing a PHP document
> from the root directory of the web account including its subdirectories?
>
> The following is my PHP test documents:
> On this server user id 99 is "nobody".
>
> =====================================
> File test.php
> =====================================
> <html>
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <?php
> echo PHP_VERSION;
> echo "<br>";
>
> $uid = posix_getuid();
> $gid = posix_getgid();
>
> echo "UID=$uid GID=$gid <br>";
>
> echo "Opening for read index.html<br>";
> $file = fopen ("index.html", "r");
> if($file != 0) fclose($file);
>
> echo "Opening for write new.html<br>";
> $file = fopen ("new.html", "w");
> if($file != 0) fclose($file);
> ?>
> </body>
> </html>
>
>
> =====================================
> Output from the web browser
> =====================================
> 4.0.6
> UID=99 GID=99
> Opening for read index.html
> Opening for write new.html
>
> Warning: fopen("new.html","w") - Permission denied in
> /www/myaccount/test.php on line 20
>
>
>
>
--- End Message ---
--- Begin Message ---
M Ibarra wrote:
> I've tried building various ways. I've recently rebuilt libmcal from CVS.
> Platform/OS: Mandrake Linux (Intel) 2.4.3
>
According to your build output, it sounds like you haven't execute
"ldconfig" after mcal installation.
Did you run ldconfig?
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Ian Marlier wrote:
> I'm trying to build PHP 4.0.6 with GD and some other stuff, but I'm
> running into two problems -- one I solved, the other I haven't.
>
> The configure line that I'm using is:
> ./configure --enable-ftp --with-gd=../gd-1.8.4 --with-jpeg-dir=/usr/lib/
> --with-png-dir=/usr/lib/ --with-mysql
> --with-pdflib=/usr/lib/tcl8.2/pdflib/ --with-apache=../apache_1.3.20
> --with-zlib-dir=/usr/local/lib
>
> The first issue is that the make of PHP would barf in the middle of the
> ext/zlib/Makefile build. I fixed the problem by doing "touch
> ext/zlib/zlib.lo; touch ext/zlib/zlib_fopen_wrapper.lo" from the source
> root.
This doesn't really fix the problem. This causes undefined reference
which should never happen under normal build.
> modules/php4/libphp4.a(internal_functions.o): In function
> `php_startup_internal_extensions':
> /root/php-4.0.6/main/internal_functions.c:64: undefined reference to
> `php_zlib_module_entry'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/root/apache_1.3.20/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/root/apache_1.3.20'
> make: *** [build] Error 2
> ----
Are you sure you have zlib and PHP find it during configure?
If you have zlib in /usr/local/lib.
Do man ldconfig and fix lib problem, then you should be able to build PHP.
Yasuo Ohgaki
--- End Message ---