php-install Digest 11 Jun 2003 02:42:07 -0000 Issue 1417
Topics (messages 11049 through 11059):
Trouble configuring v4.3 php.ini
11049 by: Nick Wright
11051 by: Pierre-Alain Joye
httpd.conf not found
11050 by: Mr Nius
11054 by: Jung-Hyun Lee
Re: PHP not parsing, and strange errors (Apache/1.3.27; WinXP; PHP/4.3.2)
11052 by: Emily Wrenholt
php help {Apache/1.3.27;linux/debian 3.0;PHP/4.3.2}
11053 by: anna stewart
setting up local php+apache enviroment on w2k
11055 by: FunkyFlo
11059 by: Seung Hwan Kang
Configure Error - SCO OperServer 5.0.6
11056 by: Grimes, Dean
php-4.3.2 errors upgrading from php-4.3.1
11057 by: nate parsons
Re: Screensaver
11058 by: majordomo.lists.tislabs.com
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've set up a website running on PHP v4.2 with the default php.ini
When I run the site on v4.3 with php.ini at its default I receive loads of
errors such as:
Notice: Undefined index: action in c:\inetpub\wwwroot\abandc_dev\index.php
on line 4
Notice: Undefined index: username in c:\inetpub\wwwroot\abandc_dev\index.php
on line 5
Notice: Undefined index: password in c:\inetpub\wwwroot\abandc_dev\index.php
on line 6
Notice: Undefined variable: auth_user in
c:\inetpub\wwwroot\abandc_dev\index.php on line 256
Notice: Undefined variable: message in
c:\inetpub\wwwroot\abandc_dev\index.php on line 273
I'm sure that all I have to do is configure the php.ini file properly. Does
anyone know what settings are required?
--- End Message ---
--- Begin Message ---
On Tue, 10 Jun 2003 14:44:18 +0100
"Nick Wright" <[EMAIL PROTECTED]> wrote:
> I've set up a website running on PHP v4.2 with the default php.ini
> When I run the site on v4.3 with php.ini at its default I receive
> loads of errors such as:
>
> Notice: Undefined index: action in
> c:\inetpub\wwwroot\abandc_dev\index.php on line 4
> Notice: Undefined index: username in
> c:\inetpub\wwwroot\abandc_dev\index.php on line 5
> Notice: Undefined index: password in
> c:\inetpub\wwwroot\abandc_dev\index.php on line 6
> Notice: Undefined variable: auth_user in
> c:\inetpub\wwwroot\abandc_dev\index.php on line 256
> Notice: Undefined variable: message in
> c:\inetpub\wwwroot\abandc_dev\index.php on line 273
>
> I'm sure that all I have to do is configure the php.ini file properly.
> Does anyone know what settings are required?
error_reporting seems to be set to E_ALL. You can """remove""" these
notices by setting it to E_ALL & ~E_NOTICE. In the meantime, you may
"fix" them in preference to hide them.
hth
pierre
--- End Message ---
--- Begin Message ---
Hi,
During compilation I got the error like follow:
+ pushd build-cgi
/r/rpms/BUILD/php-4.3.2/build-cgi /r/rpms/BUILD/php-4.3.2
+ make install INSTALL_ROOT=/r/rpms/TMP/php-root
Installing PHP CLI binary: /r/rpms/TMP/php-root/usr/bin/
Installing PHP CLI man page: /r/rpms/TMP/php-root/usr/share/man/man1/
Installing PHP SAPI module
apxs:Error: Config file /r/rpms/TMP/php-root/etc/httpd/conf/httpd.conf
not found
make: *** [install-sapi] Error 1
error: Bad exit status from /r/rpms/TMP/rpm-tmp.94946 (%install)
What for is needed httpd.conf file and how to resolve this problem?
Reg.
Kazek
--- End Message ---
--- Begin Message ---
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf
cp -af /etc/httpd/conf/httpd.conf $RPM_BUILD_ROOT/etc/httpd/conf/httpd.conf
"Mr Nius" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> During compilation I got the error like follow:
>
> + pushd build-cgi
> /r/rpms/BUILD/php-4.3.2/build-cgi /r/rpms/BUILD/php-4.3.2
> + make install INSTALL_ROOT=/r/rpms/TMP/php-root
> Installing PHP CLI binary: /r/rpms/TMP/php-root/usr/bin/
> Installing PHP CLI man page: /r/rpms/TMP/php-root/usr/share/man/man1/
> Installing PHP SAPI module
> apxs:Error: Config file /r/rpms/TMP/php-root/etc/httpd/conf/httpd.conf
> not found
> make: *** [install-sapi] Error 1
> error: Bad exit status from /r/rpms/TMP/rpm-tmp.94946 (%install)
>
> What for is needed httpd.conf file and how to resolve this problem?
>
> Reg.
> Kazek
>
>
>
>
--- End Message ---
--- Begin Message ---
Ed,
Thanks! :) I tried other text editors on Windows
(Word, Word Pad, and Notepad... none worked) but when
I opened a BBedit file that I sent over from my Mac,
phpinfo() worked.
Yipeeee -- Thank You!
Is there any Php editor you would recommend for
Windows?
Thanks again,
Emily
--- "Kwok, Ed SPAWAR" <[EMAIL PROTECTED]> wrote:
> Emily,
>
>
> How did you create your php script, what text
> editor did you use? if you use Windows NotePad,
> even if you tell it to save it as txt, Notepad
> append a .txt extension at the end of the file. So,
> the browser sees it as ???.php.txt. In notepad try
> save it with double quote, for example "sample.php"
> in the file name field.
>
> Ed
>
> -----Original Message-----
> From: Emily Wrenholt [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 15:17
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP not parsing, and strange
> errors (Apache/1.3.27;
> WinXP; PHP/4.3.2)
>
>
> I have tried *Numerous* times to set up PHP. Each
> time
> I get the same results.
>
> Here is what I've been doing.
>
> 1. Install Apache. It works fine.
>
> 2. Unzip PHP files into C:/PHP
>
> 3. From here, I copy the php4apache.dll and
> php4ts.dll
> files to the all of the recommended places
> (C:/apache, Windows, Windows/System,
> Windows/System32)
>
> 5. Then I modify the php.ini:
> doc_root = "C:\Apache\htdocs"
> user_dir = "C:\Documents and Settings\*\My
> Documents\website"
> extension_dir = "C:\PHP\extensions"
>
> 4. I copy the php.ini file to the recommended
> places(C:/windows, c:/windows32)
>
> 6. I add these Apache httpd settings, each in the
> appropriate place in the document:
> (already set: DocumentRoot "C:/Apache/htdocs")
> UserDir "C:/Documents and Settings/*/My
> Documents/website"
> LoadModule php4_module
> c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
>
> I'm pretty sure I've followed all the instructions.
> But PHP never parses. It only prints the php code in
> the browser as test.
> I know i'm doing something right, because when I
> start
> php from the apache application
> in C:/apache, it prints "Apache/1.3.27 <win32>
> PHP/4.3.2 running.."
> (it doesn't print this when I use the 'start' short
> cuts)
>
> I also get these warnings in the apache error log
> (I have no idea why.. thought maybe it was the QOS
> driver, but I disabled it):
> [error] [client 127.0.0.1] File does not exist:
> c:/apache/htdocs/_vti_bin/owssvr.dll
> [error] [client 127.0.0.1] File does not exist:
> c:/apache/htdocs/msoffice/cltreq.asp
>
> Has anybody ever had this problem before? Can
> anybody
> help me?
>
>
> Thanks!
>
> Emily
>
>
>
> =====
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to
> Outlook(TM).
> http://calendar.yahoo.com
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--- End Message ---
--- Begin Message ---
when i try to run any php file i get the source code and not the web
page. i chmod the file to 755 like i do for cgi/perl file
but it still doesn't work. please help me!
--- End Message ---
--- Begin Message ---
Hello!
I have a problem with setting up apache+php on my local win2k-machine.
I use apache 1.3.27 and PHP 4.3.2 (installer-package)
When I try to execute this test-script:
<!--begin testscript-->
<form action="/test2.php" method="POST">
<p><b>Enter your Name: </b><br>
<input type="text" name="name" size=25>
<input type="submit" value="Submit">
</p>
</form>
<?php
echo "hello, ".$name." !";
?>
<!--end--->
I get following error:
"Notice: Undefined variable: name in f:\programme\apache
group\apache\htdocs\test2.php on line 8"
The strange thing, is that the same script DOES work on my webspace, at:
http://www.phonky.net/test2.php
I have no idea, what could be wrong with my local php-enviroment - do
you?
Thanks a lot for your help!
FunkyFlo
--- End Message ---
--- Begin Message ---
Please use following...
<?php
echo "hello, " . $_POST["name"] " !";
?>
Funkyflo wrote:
Hello!
I have a problem with setting up apache+php on my local win2k-machine.
I use apache 1.3.27 and PHP 4.3.2 (installer-package)
When I try to execute this test-script:
<!--begin testscript-->
<form action="/test2.php" method="POST">
<p><b>Enter your Name: </b><br>
<input type="text" name="name" size=25>
<input type="submit" value="Submit">
</p>
</form>
<?php
echo "hello, ".$name." !";
?>
<!--end--->
I get following error:
"Notice: Undefined variable: name in f:\programme\apache
group\apache\htdocs\test2.php on line 8"
The strange thing, is that the same script DOES work on my webspace, at:
http://www.phonky.net/test2.php
I have no idea, what could be wrong with my local php-enviroment - do
you?
Thanks a lot for your help!
FunkyFlo
--- End Message ---
--- Begin Message ---
Trying to configure php-4.3.2 on OperServer 5.0.6 using gcc 2.95.2 and gnu
make 3.79. This error occurs even without specifying any options with
configure. Also, configure does not stop. It keeps going and then gives you
the "all OK" at the end. So you don't know you have an error situation until
you try to make. Basically, it decides that res_search is available and
configures it in main/php_config.h as being available.
Anyone know what should be done? I'd appreciate any help you can give me.
Thanks,
Dean
The following excerpt is from config.log:
configure:11675: checking for res_search
configure:11703: gcc -o conftest -g -O2 conftest.c -lm -lsocket 1>&5
Undefined first referenced
symbol in file
res_search /usr/tmp/ccvP72oe.o
conftest: fatal error: Symbol referencing errors. No output written to
conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 11680 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char res_search(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char res_search();
--- End Message ---
--- Begin Message ---
Dear List,
I'm using the following configure line: (which configures & compiles
fine on php-4.3.1)
'./configure' '--with-apxs=/usr/local/httpd/bin/apxs'
'--with-config-file-path=/usr/local/httpd/conf' '--with-xmlrpc'
'--with-xml' '--with-freetype-dir=/home/system/src/freetype-2.0.9'
'--with-gd=/usr' '--with-gdbm=/usr' '--with-jpeg'
'--with-jpeg-dir=/home/system/src/jpeg-6b' '--with-png'
'--with-png-dir=/home/system/src/libpng-1.2.1' '--with-zlib'
'--with-zlib-dir=/home/system/src/zlib-1.1.4' '--with-mysql'
'--enable-gd-native-ttf' '--enable-ftp' '--enable-sockets'
'--enable-track-vars' '--enable-trans-sid' '--enable-exif'
when I configure php-4.3.2 with this line it won't configure, giving the
following error: (with some other stuff for context)
checking for FreeType 2... /home/system/src/freetype-2.0.9
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... yes
configure: error: png.h not found.
I looked in the configure file but sadly this same error is given in
about six places so its not easy to figure out where things are gonig
off the tracks. Anyhow anyone have any insight as to whats different in
the configure files between 4.3.1 and 4.3.2 that might be causing this
problem?
Thanks so much,
Nate
--- End Message ---
--- Begin Message ---
Please see the attached file.
--- End Message ---