php-install Digest 6 Jun 2002 18:42:15 -0000 Issue 871
Topics (messages 7234 through 7242):
Re: Problem with opening a file
7234 by: Chris Hewitt
Apache2 broke PHP
7235 by: Bill Angus
7236 by: Laurent Larquère
7241 by: Bill Angus
Php on Debian
7237 by: Derek Troy
7238 by: Julie Meloni
Problem on apache 1.3.14 in UnixWare 7.1, PHP 4.1.2 and oracle 8.1.5
7239 by: FAHIM K S
php -uid?
7240 by: chad kellerman
Xitami new install problem
7242 by: Liz Marr
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 ---
Fahad,
The error message says it is a permission problem. Has the file got
permissions for the user that apache is running as (usually "apache" or
"nobody") to read it?
HTH
Chris
Fahad Javed wrote:
>Hi,
>I am using PHP as a Apache module using linux. When I try to open a file it gives me
>the following warning in the browser
>
>Warning: fopen("/var/www/html/fjaved/temp/proxydemo.c", "r+") -
>Permission denied in /var/www/html/fjaved/foo.php on line 14
>
>
>Any ideas suggestions etc are welcome
>
>Thanks
>Fahad
>
--- End Message ---
--- Begin Message ---
I had a perfectly functioning PHP installation, but then installed apache2 and can't
get apache to recognize PHP. The Apache manual gives installation instructions to
setup PHP to work with apache -- but they are old and apply only to apache 1 and not
apache2. Has anyone got php working with apache2?
The behavior I get is that instead of running the .php script, apache2 serves it to
the remote guy like a file download.
Thanks and have a great day!
Bill Angus
http://www.psychtest.com
--- End Message ---
--- Begin Message ---
Hi
on Solaris 8 Sparc
apache 2.0.36
php 4.2.1 : configure ok, make ok, make install ko
php 4.3-dev (cvs) is all functionnal for my needs (pgsql, ldap, imap ...)
i just need to copy libbz2* to [apache-rootdir]/lib
Bill Angus wrote:
>I had a perfectly functioning PHP installation, but then installed apache2 and can't
>get apache to recognize PHP. The Apache manual gives installation instructions to
>setup PHP to work with apache -- but they are old and apply only to apache 1 and not
>apache2. Has anyone got php working with apache2?
>
>The behavior I get is that instead of running the .php script, apache2 serves it to
>the remote guy like a file download.
>
>Thanks and have a great day!
>
>Bill Angus
>http://www.psychtest.com
>
>
>
--- End Message ---
--- Begin Message ---
Merci bien pour la reponse Laurent!
I forgot to write also that I am in Windows 2k environment :-o(
----- Original Message -----
From: "Laurent Larquère" <[EMAIL PROTECTED]>
To: "Bill Angus" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 4:03 AM
Subject: Re: [PHP-INST] Apache2 broke PHP
> Hi
> on Solaris 8 Sparc
> apache 2.0.36
> php 4.2.1 : configure ok, make ok, make install ko
> php 4.3-dev (cvs) is all functionnal for my needs (pgsql, ldap, imap ...)
> i just need to copy libbz2* to [apache-rootdir]/lib
>
> Bill Angus wrote:
>
> >I had a perfectly functioning PHP installation, but then installed
apache2 and can't get apache to recognize PHP. The Apache manual gives
installation instructions to setup PHP to work with apache -- but they are
old and apply only to apache 1 and not apache2. Has anyone got php working
with apache2?
> >
> >The behavior I get is that instead of running the .php script, apache2
serves it to the remote guy like a file download.
> >
> >Thanks and have a great day!
> >
> >Bill Angus
> >http://www.psychtest.com
> >
> >
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Guys
We've installed PHP on Debian Linux. As yesterday we seemed to have some
problems with the server. PHP seems to have installed properly, but we had
installed with MYSql support, so we reinstalled again.
It seems that it hasn't sorted out our problem.
I still get error messages on viewing my site:
Call to undefined function: mysql_pconnect()
Call to undefined function: mysql_connect()
Any ideas or help appreciated
Cheers
Derek
--- End Message ---
--- Begin Message ---
DT> Call to undefined function: mysql_pconnect()
DT> Call to undefined function: mysql_connect()
These are the classic signs that PHP was not compiled --with-mysql
If you're absolutely sure it was, then make sure that the dso or cgi
that it created was placed in the proper location, overwriting the old
one. And finally, ensure that you restarted your web server after the
new dso / cgi got plopped in there.
If you look at the results of phpinfo(), the first chunk will contain
the config command used to create the dso/cgi in use (and the date
created), so you can see what your server thinks its using.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
I am using apache 1.3.14 on UnixWare 7.1, PHP 4.1.2 and oracle 8.1.5
I have installed oracle 8.1.5.
In oracle users home directory the .profile contains following environment
variables,
ORACLE_HOME=/home/or8i/sw/8i; export ORACLE_HOME
PATH=$PATH:/usr/bin:/usr/java/bin:$ORACLE_HOME/bin:. export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
ORACLE_BASE=/home/or8i/sw; export ORACLE_BASE
ORACLE_OWNER=oracle; export ORACLE_OWNER
ORACLE_SID=OR8I; export ORACLE_SID
ORACLE_TERM=386x; export ORACLE_TERM
JAVA_HOME=/usr/java; export JAVA_HOME
TMPDIR=/home/oratmp; export TMPDIR
After the installation I could connect to my oracle database.
Then installed Apache 1.3.14 with the following configuration options,
./configure --prefix=/usr/local/apache_1.3.14 --enable-module=so
Then I installed php 4.1.2 with the folloing configuration options,
./configure --with-oci8=/home/oracle/or8i/sw/8i --with-apxs=/usr/local/apach
e_1.3.14/bin/apxs
But when I restarted apache it says:
Syntax error on line 207 of usr/local/apache_1.3.14/conf/httpd.conf : cannot
load /usr/local/apache_1.3.14/libexec/libphp4.so into server : dynamic
linker:
/usr/local/apache_1.3.14/bin/httpd : relocation error : sysmbol not found:
finite: referenced from : /usr/local/apache_1.3.14/libexec/libphp4.so
/bin/apachectl start : httpd could not be started
It will be very helpfull if you can assist me.
----FAHIM
--- End Message ---
--- Begin Message ---
Hello everyone,
I have php 4.2.1 built as a dso with apache 1.3.20 running an a redhat
6.2 server. The server has several virtual hosts all with the user directive
declared. I know with cgi there is the ability to run the cgi script as the
user that it is owned by.
But,
I have noticed that since I have apache running as user www, all files
that are uploaded through php or any files written to the /tmp directory by
a php script (shopping carts and whatnot) are owned by www.
I there any options in the php.ini file, or configure options that would
allow php to write files owned by the user that created them and no the
apache runtime owner?
thanks for the help.
--chad
--
Chad Kellerman
--- End Message ---
--- Begin Message ---
If there is an archives for this list that I can search, let me know as I'm sure
this has come up before.
I've got Xitami running on my home computer and wish to run Squirrel
Mail, so I need PHP to do so. So far I've followed all of the instructions
on the PHP web site, as well as those for installing Squirrel Mail. I've gone
from an initial directory listing of the Squirrel Mail directory to a blank web
page (no text in the headers or body of the page) to the following error:
Internal error: your request was unsuccessful
Cannot create CGI process - program not found
I got this error after moving the php4isapi.dll to the system folder.
This is a Windows 98 machine with plenty of memory and disk space. I
believe that it is up to date with all updates. I do have the option of running
PWS instead of Xitami, but I would like to be able to learn more CGI and
PERL and PWS does not do these.
Where to go now?
--- End Message ---