php-install Digest 30 Jun 2003 01:22:21 -0000 Issue 1440

Topics (messages 11163 through 11172):

Installation PHP+Apaceh
        11163 by: Jose Manuel
        11164 by: Adam Voigt

i need help: can someone translate?
        11165 by: Tim Best

problems installing gd2.dll under WinXP
        11166 by: Kolboom Andreas
        11167 by: Stephen

Compile PHP
        11168 by: Jose Manuel
        11169 by: Adam Voigt

dll extensions in 4.3.2
        11170 by: Adam Woolever

Compile PHP 4.3.1 + binary Apache 4.3.1 + Suse
        11171 by: Jose Manuel

PHP5 beta 1 + Apache 2.0.46 on WinXP SP1
        11172 by: AzN

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 have installed PHP 4.3.1 with Apache 1.3.23.
PHP was compiled with

#./configure --with-mysql --with-apxs
#make
#make install

I have tested the file info.php and show the configuration of PHP correctly
but when i try to test a web page, not function.

I have created a little file prueba.php:

<html>
<body>
Ejemplo
<?
print("Prueba");
?>
</body>
</html>

and the output is

Ejemplo

It seems that not parse the php code

PHP            /usr/local/php-4.3.1
php.ini         /usr/local/lib/php.ini
httpd.conf    /etc/httpd/httpd.conf

and i have insert the modules over httpd.conf

ScriptAlias /php/ "/usr/local/lib"
AddType application/x-hhtpd-php .php
AddType application/x-hhtpd-php-source .phps
Action application/x-httpd-php "/php/php"

Any ideas.




--- End Message ---
--- Begin Message ---
First, restart apache (or the machine).
Second, change it to:

<html>
<body>
<?php
print("Prueba");
?>
</body>
</html>

On Mon, 2003-06-23 at 11:14, Jose Manuel wrote:
> I have installed PHP 4.3.1 with Apache 1.3.23.
> PHP was compiled with
> 
> #./configure --with-mysql --with-apxs
> #make
> #make install
> 
> I have tested the file info.php and show the configuration of PHP correctly
> but when i try to test a web page, not function.
> 
> I have created a little file prueba.php:
> 
> <html>
> <body>
> Ejemplo
> <?
> print("Prueba");
> ?>
> </body>
> </html>
> 
> and the output is
> 
> Ejemplo
> 
> It seems that not parse the php code
> 
> PHP            /usr/local/php-4.3.1
> php.ini         /usr/local/lib/php.ini
> httpd.conf    /etc/httpd/httpd.conf
> 
> and i have insert the modules over httpd.conf
> 
> ScriptAlias /php/ "/usr/local/lib"
> AddType application/x-hhtpd-php .php
> AddType application/x-hhtpd-php-source .phps
> Action application/x-httpd-php "/php/php"
> 
> Any ideas.
> 
-- 
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


--- End Message ---
--- Begin Message ---
The configure operation for php-4.3.2 said i should
send this.  Can you tell what seems to be wrong?  I
have a funky configuration the path to iodbc is to the
actual path not the link but /usr/local usually works
fine.  Any insights would be helpful!

Thanks,
T



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Attachment: debug.log
Description: debug.log


--- End Message ---
--- Begin Message ---
Hello,

I cannot get the gd2.dll to work on my system.
The rest of PHP already works fine.

- Windows XP
- Apache 2.0.46
- PHP 4.3.2
- php.ini IS found and used (as seen in php.info: Configuration File
(php.ini) Path = C:\WINDOWS\php.ini)
- entered the right extension_dir in php.ini WITH ending '\'
- colon WAS removed in line 'extension=php_gd2.dll'
- There IS a php_gd2.dll in C:\.......\extensions
- Upon (re)starting the Apache, I get no error whatsoever.
Still:
=> any .php script using GD methods brings errors like
" Fatal error:  Call to undefined function:  imagegif() "

Please help!

Andy

--- End Message ---
--- Begin Message ---
Andy,

Two things spring to mind. Firstly, Apache 2 and PHP are still in beta
testing stage, so it *could* be an issue with those two. Probably not thou.
Secondly, I believe I am correct in saying that you should not have a \ on
the end of your extension path. I do not have one on mine, and GD2 works
perfectly. That would explain why it isn't loading the dll file.

To test your GD info, I suggest using gd_info() to get all the information
about GD. If the function fails, then GD has not been installed, otherwise
it should return an array. A simple test code would look something like
this:

$GDArray = gd_info();

foreach( $GDArray as $key=>$value ) {
print '$GDArray['.$key.'] = '.$value.'<br>';
}

Stephen

----- Original Message ----- 
From: "Kolboom Andreas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 27, 2003 2:51 PM
Subject: [PHP-INST] problems installing gd2.dll under WinXP


Hello,

I cannot get the gd2.dll to work on my system.
The rest of PHP already works fine.

- Windows XP
- Apache 2.0.46
- PHP 4.3.2
- php.ini IS found and used (as seen in php.info: Configuration File
(php.ini) Path = C:\WINDOWS\php.ini)
- entered the right extension_dir in php.ini WITH ending '\'
- colon WAS removed in line 'extension=php_gd2.dll'
- There IS a php_gd2.dll in C:\.......\extensions
- Upon (re)starting the Apache, I get no error whatsoever.
Still:
=> any .php script using GD methods brings errors like
" Fatal error:  Call to undefined function:  imagegif() "

Please help!

Andy

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
What's the difference between compile PHP with Apache or with apxs.

./configure --with-apache = .... --with-mysql

or

./configure --with-apxs = .. --with-mysql

I need to compile PHP a module of Apache. The option --with-apache need the
directory source of Apache and i installed binaries Apache from Suse and i
downloaded source PHP ( version 4.3.1) from www.php.net.

Thanks.



--- End Message ---
--- Begin Message ---
The --with-apache builds PHP into the Apache source code
making it a little faster, but less flexibile (you need to
recompile Apache to add PHP modules, etc.)

The --with-apxs builds PHP as a DSO (kind of like a DLL),
so if you already have a binary install of Apache, you want
the --with-apxs option.



On Thu, 2003-06-26 at 11:51, Jose Manuel wrote:
> What's the difference between compile PHP with Apache or with apxs.
> 
> ./configure --with-apache = .... --with-mysql
> 
> or
> 
> ./configure --with-apxs = .. --with-mysql
> 
> I need to compile PHP a module of Apache. The option --with-apache need the
> directory source of Apache and i installed binaries Apache from Suse and i
> downloaded source PHP ( version 4.3.1) from www.php.net.
> 
> Thanks.
-- 
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


--- End Message ---
--- Begin Message ---
I've got a fresh install of 4.3.2 on an older test server running NT4 (don't
hate me for it).  Php is running fine, but when I try to uncomment
php_mhash.dll I get an error that it can't find the file.  I've changed
extension_dir to the specific location of the extensions folder in php.ini
but it doesn't work.  Any thoughts?

Adam Woolever
www.MidwayNet.net
219-866-7946
888-866-7946



--- End Message ---
--- Begin Message ---
I have compiled PHP 4.3.1 over Suse 8.0 with

#./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/sbin/apxs
#make
#make install

and it's all correct ( info.php function correctly ) . The version of Apache
is a binary distribution 1.3.2.

When i access a web page that uses sessions and MySQL conection ( a
validation user page, a user and password edit text object and a button that
verifies the user over MySQL table ) not respond, it's not run. The server
not respond any error.
MySQL function correctly ( phpMyAdmin ).

The compilation ( make ) output

Installing PHP CLI binary:        /usr/local/bin/
Installing PHP SAPI module
Installing shared extensions:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - already installed: 0.9
[PEAR] Console_Getopt - already installed: 1.0
[PEAR] PEAR           - already installed: 1.0b3
[PEAR] DB             - already installed: 1.3
[PEAR] HTTP           - already installed: 1.2
[PEAR] Mail           - already installed: 1.0.1
[PEAR] Net_SMTP       - already installed: 1.0
[PEAR] Net_Socket     - already installed: 1.0.1
[PEAR] XML_Parser     - already installed: 1.0
[PEAR] XML_RPC        - already installed: 1.0.4
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
  program: phpextdist

I have insert various lines to  file httpd.conf :

..
LoadModule php4_module        /usr/lib/apache/libphp4.so
..
AddModule mod_php4.c
..
ScriptAlias /php/ "/usr/local/lib/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php"
...

What's the problem?

Thanks.



--- End Message ---
--- Begin Message ---
Hi,
Can anyone get PHP5 beta to work on Apache 2.0.46? Heres what I'm doing:

Extract PHP5 to C:\php
Put php4ts.dll into C:\WINDOWS\system32
Put php.ini-recommended into C:\WINDOWS, rename to php.ini

Add to httpd.conf:
    LoadModule php4_module "c:/php/sapi/php4apache2.dll"
    AddType application/x-httpd-php .php

Those are the same steps I followed for PHP4. However, when I run Apache, I
get:
    Cannot load c:/php/sapi/php4apache2.dll into server: The specified
module could not be found.

The file php4apache2.dll does exist in c:\php\sapi\.. Are there new
instructions for installing PHP5?



--- End Message ---

Reply via email to