php-install Digest 5 Feb 2002 17:39:37 -0000 Issue 685
Topics (messages 5921 through 5929):
Re: php 4.1.1 and bsdi 4.2 -> incompatible type for argument 4 of `semctl'
5921 by: Yasuo Ohgaki
Default files permissions
5922 by: Marc Mendez
5925 by: Richard Hillström (GIS)
5926 by: mendez.lug.com
Re: Newby -- Browser won't run php
5923 by: dballester.kernpharma.com
Re: Netscape_Oracle_Problem
5924 by: Thies C. Arntzen
Pregunta
5927 by: Villarreal Patricia Adriana
PHP4, Apache and W2k installation not working
5928 by: Kjell Hansen
php AIX install
5929 by: Shawn
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 ---
Swade wrote:
> Hi,
> was upgrading php from 4.0.6 on bsdi 4.2 and used the same config options:
>
> /configure --prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic
>--enable-
> shared --enable-inline-optimization --with-apxs=/usr/local/apache/bin/apxs
>--with-exec-
> dir=/usr/bin --with-regex=system --enable-debugger --enable-magic-quotes
>--enable-safe-
> mode --enable-sysvsem --enable-track-vars --with-xml --with-db --without-mysql
>
>
> Now I'm getting this error during make:
> /bin/sh /usr/home/sam/php-4.1.1/libtool --silent --mode=compile gcc -I. -
> I/usr/home/sam/php-4.1.1/ext/sysvsem -I/usr/home/sam/php-4.1.1/main -
> I/usr/home/sam/php-4.1.1 -I/usr/local/apache/include -I/usr/home/sam/php-
> 4.1.1/Zend -I/usr/home/sam/php-4.1.1/ext/xml/expat -DUSE_HSREGEX -
> DUSE_EXPAT -DNO_DL_NEEDED -I/usr/home/sam/php-4.1.1/TSRM -g -O2 -prefer-
> pic -c sysvsem.c
> sysvsem.c: In function `zif_sem_remove':
> sysvsem.c:414: incompatible type for argument 4 of `semctl'
>
> taking sysvsem out compains about missing a library for something else. I'm not sure
>what
> sysvsem is, tried taking out a few other things but then get errors involving
>session
> support, etc.
>
> Any clue what i can do?
>
> thanks,
> shawn
Get rid of --enable-sysvsem from your configure line.
BTW, could you send me to
man 2 semctl
page?
--
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)
--- End Message ---
--- Begin Message ---
Hi,
I have an Apache server running with Suse 7.0
One of our customer wrote a php file that writes a file on the disk server.
The trouble is that the file permissions are read/write/execute for
everybody !!
How can I prevent PHP from setting any file permissions ??
Thanks !
--- End Message ---
--- Begin Message ---
Hi,
A possible solution, have not had the problem myself:
If you are running linux/unix, then it is probably your nobody user, or whatever user
you have for running apache, that is writing the file. That user has an umask that
needs to be changed to e.g. 022. The umask sets the default permissions on new files
created by that user. See /etc/profile or the users .profile or .cshrc.
Good luck
Richard
-----Original Message-----
From: Marc Mendez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 9:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Default files permissions
Hi,
I have an Apache server running with Suse 7.0
One of our customer wrote a php file that writes a file on the disk server.
The trouble is that the file permissions are read/write/execute for
everybody !!
How can I prevent PHP from setting any file permissions ??
Thanks !
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
All right, but, here is the code :
<?php
$file="homepage.txt";
$fp=fopen($file,"w");
if(!$fp)
echo "&boite.sortie=error";
else{
if(fputs($fp, "&texte=".$contenu)!=0)
echo "&boite.sortie=fichier $file mis à jour.";
else
echo "&boite.sortie=erreur lors de l'écriture sur $file";
fclose($fp);
}
?>
It seems that when I force the right to 644, "rw-r--r--", the code does not work !
--- End Message ---
--- Begin Message ---
Hi:
For test, comment all <IfDefine HAVE_PHP4> ( and the </IfDefine>, of
course ) conditionals in the httpd.conf file and restart ( stop & start )
your httpd server. May be you have compiled and linked the php module Ok
but it's not well informed in the system and the httpd belives that no php
module is available.
Hope this help, let me know if it worked for you.
Regards
"Captain Webber" <[EMAIL PROTECTED]> con fecha 03/02/2002 08:20:10
PM
Destinatarios: [EMAIL PROTECTED]
CC:
Asunto: [PHP-INST] Re: Newby -- Browser won't run php
Browser isn't suppose to run PHP scripts. PHP is a SERVER-SIDE scripting
language and is executed by your SERVER.
"Dan Campbell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Damn, this is hard. I'm running Linux 7.1, apache_1.3.19 , php-4.1.1.
> Everything seems to have been installed fine, without a hitch, but I
still
> can't get my browser to recognise a php page called phpinfo.php with the
> following script <? phpinfo.php ?> like it should.
> all the configure , make , and make files directives seemed to work fine.
> it's been a week I've been working on this, a real nightmare. I got it
> running once a while back, it seemed so much easier somehow, but now it's
> like impossible with PHP4 .
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Mon, Feb 04, 2002 at 04:29:42PM -0800, Cliff Pratt wrote:
>
> I can get PHP 4.1.1 to work with Enterprise server 4.1 SP9 if I don't
> include Oracle in the Configure statement. I am running Tru64/Unix 5.1A on
> a DEC Alpha. Apache will work with Oracle. I am including the same LIB's as
> used for Oracle with Apache. No errors on make or install, compiling with
> gcc 3.0.2 with patches
> for Tru64 and using gnu make. If I configure with oci8 or oracle, when I
> try to start the web
> server I get the following:
> Error running init function load-modules: dlopen of
> /local/apps/netscape/server4/bin/libphp4.so failed (dlopen:
> /local/apps/netscape/server4/bin/libphp4.so: symbol "OCILobFreeTemporary"
> unresolved)
just say
#undef HAVE_OCI8_TEMP_LOB
somewhere at the top of oci8.c and recompile - than report
back.
tc
--- End Message ---
--- Begin Message ---
Windows 98 Castellano
PHP version 4.1.0
Web Server: PWS 4.0
Error: No se puede hallar uno de los archivos de biblioteca necesarios para ejecutar
esta aplicación.
--- End Message ---
--- Begin Message ---
Hi all!
I've banged my head to the keyboard and to the installation notes of
PHP4 but I still can't make it work.
pls Help Me!
This works:
php.exe -i ( from the command prompt from any dir.)
php.exe test.php (from the php-dir)
apache error file reports no errors when starting
This won't do
http://localhost/test.php Reports Bad Request (HTTP 400) Invalid URI
in request
The test page contains just a single word of Joy!, no html tags, no php
tags no nothing at all except for the Joy!-word
These lines are the new to my Apache-conf file (in order of appearance)
ScriptAlias /php/ "f:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "php.exe"
Hope someone will know what's wrong!
TIA
Kjell Hansen
--- End Message ---
--- Begin Message ---
I need to install php on an RS/6000 running AIX and netscape webserver. Can
anyone give me some tips or instructions on how to do this? I know basic
UNIX command line but thats about it. Thanks.
--- End Message ---