php-install Digest 29 Jan 2002 06:56:26 -0000 Issue 673

Topics (messages 5796 through 5802):

Problems with installation on windows98 with apache
        5796 by: Suzanne Francis
        5797 by: Mike Maltese

PHP on Windows XP problem
        5798 by: Poul Theodorsen
        5799 by: Mike Maltese

Problem with ld and -lm option.
        5800 by: Andres Plaza R.

AddType Activation in PHP (Linux)
        5801 by: Andre Dubuc

help!
        5802 by: tungphp.yahoo.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 ---
Hi,

My name is Suzanne and I'm trying to install PHP4 and am having a few problems.

I have windows 98
I downloaded Apache 
I downloaded PHP4 windows installer

I followed the wizard for apache and have tested to see that it works (when I start it 
I see one MS-Dos window that says its running and one or two others flash onto the 
screen and disapear.

PHP is loaded into c:/Php

In the  Apache  httpd.conf file I have put the following information

ServerName localhost

ScriptAlias /php/ ""c:/Php/""  (have also tried /php4/ ""c:/Php/""  )

#AddType application/x-httpd-php .php .phtml .html .php4

Action application/x-httpd-php /Php/php.exe


--------------------------------------------------------------------------------

To test PHP I have tried creating the following in notepad

<? phpinfo() ?>

saved as phpinfo.php in htdocs of apache. 
Opened in IE6 as http://localhost/phpinfo.php gives screen with 
<? phpinfo() ?>

If <html> <body>  </html> </body>
is added around the above I get a blank screen

--------------------------------------------------------------------------------

I have also tried saving the well known Hello World.
On my computer I get a blank screen.
If I load it to my web page on free.fr which supports PHP I
get Hello World.

--------------------------------------------------------------------------------

I guess my computer is not recognizing PHP.
Can anyone see what could be going wrong.
Thanks a million
Suzanne
 
--- End Message ---
--- Begin Message ---
1. Remove the ScriptAlias line
2. Uncomment the AddType line (remove the "#")
3. Try Action application/x-httpd-php "C:/php/php.exe"
4. Restart Apache.

Let us know if you are still having problems.

----- Original Message -----
From: "Suzanne Francis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 12:29 PM
Subject: [PHP-INST] Problems with installation on windows98 with apache


Hi,

My name is Suzanne and I'm trying to install PHP4 and am having a few
problems.

I have windows 98
I downloaded Apache
I downloaded PHP4 windows installer

I followed the wizard for apache and have tested to see that it works (when
I start it I see one MS-Dos window that says its running and one or two
others flash onto the screen and disapear.

PHP is loaded into c:/Php

In the  Apache  httpd.conf file I have put the following information

ServerName localhost

ScriptAlias /php/ ""c:/Php/""  (have also tried /php4/ ""c:/Php/""  )

#AddType application/x-httpd-php .php .phtml .html .php4

Action application/x-httpd-php /Php/php.exe


----------------------------------------------------------------------------
----

To test PHP I have tried creating the following in notepad

<? phpinfo() ?>

saved as phpinfo.php in htdocs of apache.
Opened in IE6 as http://localhost/phpinfo.php gives screen with
<? phpinfo() ?>

If <html> <body>  </html> </body>
is added around the above I get a blank screen

----------------------------------------------------------------------------
----

I have also tried saving the well known Hello World.
On my computer I get a blank screen.
If I load it to my web page on free.fr which supports PHP I
get Hello World.

----------------------------------------------------------------------------
----

I guess my computer is not recognizing PHP.
Can anyone see what could be going wrong.
Thanks a million
Suzanne


--- End Message ---
--- Begin Message ---
Help - I'm a newbie on PHP and I can't make it work.

I'm running Apache locally under Windows XP, and all my Perl scripts works
fine.

My web-root is"f:/www/domain/web" and PHP has been installed in
"f:/usr/php.exe"

I  have made these additions to Apache's config file :
ScriptAlias /php/ "F:/usr/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
Action application/x-httpd-php "/usr/php.exe"

but i only get this answer (from the error log) :
[Mon Jan 28 22:27:28 2002] [error] [client 127.0.0.1] File does not exist:
f:/www/domain/web/usr/php.exe/myphp/test.php

The changes were made according to various PHP tutorials, but somehow the
path to the script gets crumbled: I have tried in several ways but it won't
work. What's wrong??

Thanks to anyone who can help me out here
Poul


--- End Message ---
--- Begin Message ---
Remove The ScriptAlias line....PHP scripts should be able to be executed
from any directory.

 For the Action directive, name the path explicitly:
Action application/x-httpd-php "f:/usr/php.exe"

Hope this gets you going.


----- Original Message -----
From: "Poul Theodorsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 2:12 PM
Subject: [PHP-INST] PHP on Windows XP problem


> Help - I'm a newbie on PHP and I can't make it work.
>
> I'm running Apache locally under Windows XP, and all my Perl scripts works
> fine.
>
> My web-root is"f:/www/domain/web" and PHP has been installed in
> "f:/usr/php.exe"
>
> I  have made these additions to Apache's config file :
> ScriptAlias /php/ "F:/usr/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> Action application/x-httpd-php "/usr/php.exe"
>
> but i only get this answer (from the error log) :
> [Mon Jan 28 22:27:28 2002] [error] [client 127.0.0.1] File does not exist:
> f:/www/domain/web/usr/php.exe/myphp/test.php
>
> The changes were made according to various PHP tutorials, but somehow the
> path to the script gets crumbled: I have tried in several ways but it
won't
> work. What's wrong??
>
> Thanks to anyone who can help me out here
> Poul
>
>
>
> --
> 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 ---
Hi everybody!

        I was looking the archive of this mailing list, and I think nobody
has the same problem that I had, so here it is:

I have a dual processor (Pentium III 1 GHz each) DELL Poweredge machine
with 1Gb RAM. I installed RH 7.2 with a custom instalation, but generally
speaking everything that is needed in a server is installed.

I compiled Apache 1.3.22 + mod_ssl without problems, and now I'm trying to
install PHP 4.1.1 with this configuration:

./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs 
--with-openssl=/usr/local/ssl --with-zlib=/usr --with-curl=/usr/local 
--with-oci8=/usr/local/oracle/8.0.5 --with-gd

but this message appears:

|                       *** ATTENTION ***                            |
|                                                                    |
| Something is likely to be messed up here, because the configure    |
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages.                         |

and if I look the debug.log :

CONFIGURE:   './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' 
'--with-openssl=/usr/local/ssl' '--with-zlib=/usr' '--with-curl=/usr/local' 
'--with-oci8=/usr/local/oracle/8.0.5' '--with-gd'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/local/apache/include  -I$(top_builddir)/Zend 
-I/usr/local/ssl/include -I/usr/local/include 
-I/home/apl/comp/php-4.1.1/ext/mysql/libmysql -I/usr/local/oracle/8.0.5/rdbms/public 
-I/usr/local/oracle/8.0.5/rdbms/demo -I/usr/local/oracle/8.0.5/network/public 
-I/usr/local/oracle/8.0.5/plsql/public
LDFLAGS:     -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib 
-Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/oracle/8.0.5/lib 
-L/usr/local/oracle/8.0.5/lib
LIBS:       -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm
 -lnsl -lgd -lcurl -ldl -lcrypto 
-lssl -lcurl -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt
DLIBS:
SAPI:       apache
PHP_RPATHS:  /usr/local/ssl/lib /usr/local/lib /usr/local/oracle/8.0.5/lib
uname -a:   Linux escuela.ing.uchile.cl 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 
i686 unknown

gcc -o conftest -g -O2  -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI  
-Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib 
-L/usr/local/lib -Wl,-rpath,/usr/local/oracle/8.0.5/lib -L/usr/local/oracle/8.0.5/lib 
conftest.c -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm
 -lnsl -lgd -lcurl -ldl -lcrypto -lssl 
-lcurl -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status

        But if I look for libm.*, they are in /usr/lib (libm.a, and
libm.so is a symbolic link to an existing file in /lib).

        Somebody have an idea about my problem, and how to solve it?

                        Thanks in advance...
-- 

                                        Andres Plaza R.
                                         [EMAIL PROTECTED]
                                  http://la.mafia.cl/aplaza

--- End Message ---
--- Begin Message ---

[AMD 800 Duron, 256M, Linux-MAndrake 8.0, Apache 1.3.19 (LM/3mdk), PHP 4.1.1, 
Netscape 4.77]

I've been struggling with the PHP module, trying to get it to work. I've 
followed PHP tutorial instructions, but the Apache module doesn't seem to 
recognize PHP. I ran the test.php ("<? phpinfo() ; ?>) and I just see the 
same text that I just wrote.

In the docs, they mention that I should add "AddType application/x-http-php 
.php" in the http.conf. I'm not exactly sure where I should add this: I've 
placed it after the "include" statement in the "Global Configuration". 
Problem is: in the Mime.types it doesn't show up (nor for that fact in 
Netscape's navigator>applications. I can't get the "AddType" 
to work, so of course, PHP is non-functional in any test.

I've d/l the newest stable version of PHP, followed all the instructions 
(with/without, in various combinations, the following: Mysql, Postgresql, 
Apache. PHP)

Now, I'm trying the bare-bones approach: only Apache and PHP - 
installing PHP 1st, then Apache first from LM8.0.  Nothing seems to work. I 
do get the Apache splash screen. 

This is becoming an obsession -- it's almost like my attempts with HylaFax!

If there are any ideas on how to get PHP up-and-running, I'd greatly 
appreciate them. I can't develop my new web-site until I get PHP 
functional.

Perhaps someone could send me a copy of a working httpd.conf and php.ini 
files, so I could maybe see what I've messed up.

Sorry to be so long-winded, but this is . . .  sigh!

Tia,
Andre


-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the suffering souls in Purgatory.

May God bless you abundantly in His love!

For a free Cenacle Scriptural Rosary Booklet -- http://www.webhart.net/csrb/
--- End Message ---
--- Begin Message ---
Hello php-install,

Please help me to make my php on RH 7.0 (Web server Apache 1.3.22).
I can not load libphp4.so module. Tell me how to get libphp4.so and to
load it, please!  

-- 
Best regards,
 tungphp                          mailto:[EMAIL PROTECTED]


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--- End Message ---

Reply via email to