php-install Digest 8 Jan 2003 06:12:03 -0000 Issue 1191
Topics (messages 9607 through 9622):
Re: Trouble building php-4.3.0 with RH8
9607 by: Matt Pritchard
9609 by: Chris Hewitt
9613 by: Chris Hewitt
Re: better description
9608 by: Scott De Leeuw
9610 by: Mitch Pirtle
9612 by: Chris Hewitt
Re: Windows install that is bugging me...
9611 by: Scott De Leeuw
9614 by: kimBlim
9615 by: Scott De Leeuw
9616 by: Mitch Pirtle
Apache 2.0.43 & php 4.3.0 coredumped
9617 by: Jose Perez
9621 by: Dan Anderson
PHP INSTALL ON PWS4
9618 by: JReichnan.aol.com
Re: Installation problem of php 4.3.0
9619 by: Dan Anderson
Re: Redhat 8 > PHP
9620 by: Dan Anderson
New phpMyadmin
9622 by: Marcus
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 ---
Mitch: you're not alone: same errors & same result for me (RH8, PHP 4.3.0).
Matt
"Mitch Pirtle" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
But wait, there's more!
[root@localhost php-4.3.0]# ./configure --with-apxs2=/usr/sbin/apxs
(bunch of gcc stuff removed in the interest of saving bandwidth)
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/usr/src/redhat/SOURCES/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the
use
of `tempnam' is dangerous, better use `mkstemp'
[root@localhost php-4.3.0]#rm -rf /dev/brain
So what is keeping 4.3.0 from compiling on a RH8 box with stock rpms? Am I
all alone here?
-- mitch
--- End Message ---
--- Begin Message ---
Matt Pritchard wrote:
Mitch: you're not alone: same errors & same result for me (RH8, PHP 4.3.0).
Matt
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/usr/src/redhat/SOURCES/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the
use
of `tempnam' is dangerous, better use `mkstemp'
[root@localhost php-4.3.0]#rm -rf /dev/brain
There was something about this tempnam warning some days or up to a
couple of weeks ago, either on this list or php-general. The line then
showed it as a warning, not an error and the compilation completed.
Rasmus answered the question that it was OK , just a warning.
If you check the archives, you should be able to find it.
HTH
Chris
--- End Message ---
--- Begin Message ---
Pritchard, MJ (Matt) wrote:
Thanks, yes, it's just a warning. My mistake in my post. But the problem is
that apache still won't parse any php (e.g. the test page I have with just
<?php phpinfo(); ?> just displays without being parsed. I've put the
AddHandler & LoadModule directives in httpd.conf before starting apache but
no luck.
RH 8.0 (which I have not used) has Apache 2. I know that the AddType is
not the same (or is it LoadModule). There are differences from 1.3.x and
that is probably where the problem lies. Does the INSTALL file in the
php source code not give instructions for the httpd.conf in Apache2?
HTH
Chris
--- End Message ---
--- Begin Message ---
I work with Windows... when I have tested it I do go through the
web browser...
If I go to a strict PHP file it all works... However, the PHP
book I am reading shows also embedding php in an HTML file the
same way that you do javascript, is that not possible?
--- Esteban Ordonez <[EMAIL PROTECTED]> wrote:
> Scott,
>
> I think you should save your file in yourweb directory and then
> navigate with your web browser. I have it like this:
> web directory: /var/www/html/index.htm
> web browser address: http://localhost/index.php
> and then start up the web server (httpd).
> Do you work with Windows or Linux?
>
> El Lun 06 Ene 2003 23:43, Scott De Leeuw escribió:
> > When I put this code in and save the file as .htm, it gives a
> > blank screen and the php script is shown in the source... I
> > think something isn't set up right...
> >
> > <!-- <HTML>
> >
> > <HEAD>
> > <TITLE></TITLE>
> > </HEAD>
> >
> > <BODY BGCOLOR="white">
> >
> >
> > <?php
> > $remote_address = getenv("REMOTE_ADDR");
> > echo "<p>Your IP address is $remote_address.</p>";
> > echo "<p>Tread lightly while you are here.</p>";
> > echo "<P></p>";
> > echo "<p>'I never did give anybody hell. I just told the
> truth,
> > and they thought it was hell.'</p>";
> > echo "<p> -- Harry S Truman</p>";
> >
> > ?>
> >
> >
> > </BODY>
> >
> >
> > </HTML> -->
=====
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
On Tuesday 07 January 2003 15:48, Scott De Leeuw wrote:
> I work with Windows... when I have tested it I do go through the
> web browser...
I don't do windows (I just *love* saying that!), but this is not platform
dependent. Try the following:
1) rename the file index.php
2) remove the initial '<!--' and trailing '-->'
3) load in browser as http://yourwebserver/index.php
Should work fine. php typically only interprets files associated with the
.php extension, so it doesn't know it needs to do .htm as well. Also,
regardless of the use of php or not, encasing the entire page in a comment
tag '<!--' and '-->' tells the browser to render nothing, as all the content
is commented. This is incorrect HTML, and is the main part of your problem.
HTH,
-- mitch, STILL trying to get 4.3.0 to compile on a RH8 box...........
--- End Message ---
--- Begin Message ---
Scott De Leeuw wrote:
I work with Windows... when I have tested it I do go through the
web browser...
If I go to a strict PHP file it all works... However, the PHP
book I am reading shows also embedding php in an HTML file the
same way that you do javascript, is that not possible?
Yes it is possible. If by "strict PHP file" you mean one with a ".php"
extension then your webserver configuration should send that to the PHP
engine before sending it to the browser. (If you are seeing the PHP
source then you have not configured this). With an ".html" file it
usually does not (as they do not normally contain PHP code). You can
configure your webserver to send ".html" files to the PHP engine if you
wish to. The disadvantage is that there is more processing as all
".html" files will have to be parsed.
You have to tell your webserver to do this as PHP is executed on the
server. In the JavaScript case, the server does nothing but send it to
the browser. It is the browser (client side) that interprets the JavaScript.
HTH
Chris
--- End Message ---
--- Begin Message ---
Really, it's that easy? I will have to try it when I get home...
Here is a good example, this is my site...
http://12.208.217.144/welcome.php (strict php file)
http://12.208.217.144/body.htm (embedded php)
Notice that the strict php file works, however the htm file with
php embedded in to it does not... From the book I was reading I
understood it could be embedded like javascript is...
I will try changing that setting when I get home....
--- Nuno Lopes <[EMAIL PROTECTED]> wrote:
> The problem is that .htm/.html files aren't being parsed.
> Simply open the configuration dialog of IIS (in control panel)
> and then go
> to 'Home directory'. Click in 'configuration' button and click
> in 'Add' and
> then enter .html as extension and C:\php\php.exe as executable
> (or where is
> your php).
>
> Nuno Lopes
>
>
> ----- Original Message -----
> From: "Scott De Leeuw" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 07, 2003 4:14 AM
> Subject: [PHP-INST] Windows install that is bugging me...
>
>
> > Here are the system specifics..
> > Windows 2000 server SP3
> > PHP 4.30
> > IIS 4 I believe, whatever comes with W2k Server
> >
> > I've installed PHP and set it up as per the instructions...
> Any
> > file with a .php or .phtml extension works, however when I
> embed
> > PHP code in to an HTML it either gives a blank page or simply
> > prints all the text... I am using the standard "<?php" tag...
> I
> > have been messing around with this for a week now and am at a
> > loss... any ideas?
>
>
>
=====
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
go to your internet services manager...
right-click on the appropriate website (default?), choose properties. now click on the
configuration button, and edit .html to be run by "C:/PHP/php.exe" or whereever you
have put it..
that should do the trick, but why cant it be called .php?
----- Original Message -----
From: "Scott De Leeuw" <[EMAIL PROTECTED]>
To: "Nuno Lopes" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 4:02 PM
Subject: Re: [PHP-INST] Windows install that is bugging me...
> Really, it's that easy? I will have to try it when I get home...
>
> Here is a good example, this is my site...
>
> http://12.208.217.144/welcome.php (strict php file)
>
> http://12.208.217.144/body.htm (embedded php)
>
> Notice that the strict php file works, however the htm file with
> php embedded in to it does not... From the book I was reading I
> understood it could be embedded like javascript is...
>
> I will try changing that setting when I get home....
>
> --- Nuno Lopes <[EMAIL PROTECTED]> wrote:
> > The problem is that .htm/.html files aren't being parsed.
> > Simply open the configuration dialog of IIS (in control panel)
> > and then go
> > to 'Home directory'. Click in 'configuration' button and click
> > in 'Add' and
> > then enter .html as extension and C:\php\php.exe as executable
> > (or where is
> > your php).
> >
> > Nuno Lopes
> >
> >
> > ----- Original Message -----
> > From: "Scott De Leeuw" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 07, 2003 4:14 AM
> > Subject: [PHP-INST] Windows install that is bugging me...
> >
> >
> > > Here are the system specifics..
> > > Windows 2000 server SP3
> > > PHP 4.30
> > > IIS 4 I believe, whatever comes with W2k Server
> > >
> > > I've installed PHP and set it up as per the instructions...
> > Any
> > > file with a .php or .phtml extension works, however when I
> > embed
> > > PHP code in to an HTML it either gives a blank page or simply
> > > prints all the text... I am using the standard "<?php" tag...
> > I
> > > have been messing around with this for a week now and am at a
> > > loss... any ideas?
> >
> >
> >
>
>
> =====
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Maybe I am totally misunderstanding, can I have an HTML file with
php code embedded in to it named .phtml and still have all of the
HTML working properly? Am I making this way harder than what it
is?
--- kimBlim <[EMAIL PROTECTED]> wrote:
> go to your internet services manager...
>
> right-click on the appropriate website (default?), choose
> properties. now click on the configuration button, and edit
> .html to be run by "C:/PHP/php.exe" or whereever you have put
> it..
>
> that should do the trick, but why cant it be called .php?
>
> ----- Original Message -----
> From: "Scott De Leeuw" <[EMAIL PROTECTED]>
> To: "Nuno Lopes" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 07, 2003 4:02 PM
> Subject: Re: [PHP-INST] Windows install that is bugging me...
>
>
> > Really, it's that easy? I will have to try it when I get
> home...
> >
> > Here is a good example, this is my site...
> >
> > http://12.208.217.144/welcome.php (strict php file)
> >
> > http://12.208.217.144/body.htm (embedded php)
> >
> > Notice that the strict php file works, however the htm file
> with
> > php embedded in to it does not... From the book I was
> reading I
> > understood it could be embedded like javascript is...
> >
> > I will try changing that setting when I get home....
> >
> > --- Nuno Lopes <[EMAIL PROTECTED]> wrote:
> > > The problem is that .htm/.html files aren't being parsed.
> > > Simply open the configuration dialog of IIS (in control
> panel)
> > > and then go
> > > to 'Home directory'. Click in 'configuration' button and
> click
> > > in 'Add' and
> > > then enter .html as extension and C:\php\php.exe as
> executable
> > > (or where is
> > > your php).
> > >
> > > Nuno Lopes
> > >
> > >
> > > ----- Original Message -----
> > > From: "Scott De Leeuw" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, January 07, 2003 4:14 AM
> > > Subject: [PHP-INST] Windows install that is bugging me...
> > >
> > >
> > > > Here are the system specifics..
> > > > Windows 2000 server SP3
> > > > PHP 4.30
> > > > IIS 4 I believe, whatever comes with W2k Server
> > > >
> > > > I've installed PHP and set it up as per the
> instructions...
> > > Any
> > > > file with a .php or .phtml extension works, however when
> I
> > > embed
> > > > PHP code in to an HTML it either gives a blank page or
> simply
> > > > prints all the text... I am using the standard "<?php"
> tag...
> > > I
> > > > have been messing around with this for a week now and am
> at a
> > > > loss... any ideas?
> > >
> > >
> > >
> >
> >
> > =====
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
On Tuesday 07 January 2003 16:46, Scott De Leeuw wrote:
> Maybe I am totally misunderstanding, can I have an HTML file with
> php code embedded in to it named .phtml and still have all of the
> HTML working properly? Am I making this way harder than what it
> is?
YES!
Just try this little test - rename the file .php and see what happens. If php
installed correctly, then you will finally get the phpinfo() that you seek...
-- mitch
--- End Message ---
--- Begin Message ---
Hi
When i have compiled apache 2.0.43 on aix 4.3.3 with this options:
./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=worker
Then i have compiled php 4.3.0:
./configure --prefix=/usr/local/apache2/php --with-mysql --with-apxs2=/usr/l
ocal/apache2/bin/apxs
All compilation has gone fine, but when i run httpd with loadmodule
libphp4.so system shows memory segmentation and apache doesn't start.
I use gcc 3.2.1.
Any idea ?
--- End Message ---
--- Begin Message ---
My guess is you need to configure Apache to use default (prefork) MPM module.
The other ones will probably not work.
See also my writeup at
http://dan.drydog.com/apache2php.html
In article <005501c2b67b$07db9960$[EMAIL PROTECTED]> you wrote:
> When i have compiled apache 2.0.43 on aix 4.3.3 with this options:
> ./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=worker
> All compilation has gone fine, but when i run httpd with loadmodule
> libphp4.so system shows memory segmentation and apache doesn't start.
--- End Message ---
--- Begin Message ---
Hello,
I wondered if you can help? I followed all of the instructions for loading
PHP4 on a windows 98 machine running PWS4. When I try to run the test file
(test.php) from the root directory of the local web. I get the error message
below. I see by going through the bulletin board that it is a very
persistant installation problem and should perhaps be a faq. Are you
familiar with this and might you be able to help me?
HTTP Error 403
403.1 Forbidden: Execute Access Forbidden
This error can be caused if you try to execute a CGI, ISAPI, or other
executable program from a directory that does not allow programs to be
executed.
Please contact the Web server's administrator if the problem persists.
--- End Message ---
--- Begin Message ---
You should post the command line for configure that you used.
You probably did not specify the directory of your library.
Type
./configure --help
to show the various options and find the one relating to your library.
Rika Yamada <[EMAIL PROTECTED]> wrote:
> Hello, my name is Rika Yamada. I have a problem installing php 4.3.0 on my
> Mac OS 10.2.
> As far as I can see from debug.log, it seems like the conftest cannot find
> libpq.3.0.dylib. However, libpg.3.0.dylib is located at
> /usr/local/pgsql/lib/.
--
Dan Anderson <[EMAIL PROTECTED]>, San Diego, CA, US
--- End Message ---
--- Begin Message ---
RedHat 8 comes with PHP. The package name is php.
If you want a newer version, you have to compile it yourself.
See
http://dan.drydog.com/apache2php.html
Matt Babineau <[EMAIL PROTECTED]> wrote:
> I'm trying to get PHP running on RH8- the Apache server is running and
> it is the newest version available from up2date, does anyone have a url
> of a good install helper on this?
--
Dan Anderson <[EMAIL PROTECTED]>, San Diego, CA, US
--- End Message ---
--- Begin Message ---
Hi there
I just Downloaded the new phpMyAdmin .zip< /FONT>
Unpacked and installed it on 2 differentP C
* Mandrake 8 and it works like a Dream with no problem.
* RedHat 8 and every time I want to create a new table it Duplicates
This is the SQL it tries to run. NOTE it duplicates on line 5,6,7
1 CREATE TABLE `wt_test` (
2 `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
3 `name` VARCHAR( 50 ) ,
4 `what` VARCHAR( 50 ) ,
5 `id` INT NOT NULL AUTO_INCREMENT,
6 `name` VARCHAR( 50 ) ,
7 `what` VARCHAR( 50 )
8 )
Any help in this would be appreciated
Regards
Marcus ( is this a proplem with phpMyAdmin or RedHat....? )
==========================================================
This message contains information intended for the perusal, and/or use (if
so stated), by the stated addressee(s) only. The information is
confidential and privileged. If you are not an intended recipient, do not
peruse, use, disseminate, distribute, copy or in any manner rely upon the
information contained in this message (directly or indirectly). The sender
and/or the entity represented by the sender shall not be held accountable
in the event that this prohibition is disregarded. If you receive this
message in error, notify the sender immediately by e-mail, fax or telephone
representations contained in this message, whether express or implied, are
those of the sender only, unless that sender expressly states them to be
the views or representations of an entity or person, who shall be named by
the sender and who the sender shall state to represent. No liability shall
otherwise attach to any other entity or person.
==========================================================
--- End Message ---