php-install Digest 20 May 2002 19:03:51 -0000 Issue 845
Topics (messages 7046 through 7053):
Installing PHP with Apache and Sybase on Linux
7046 by: Vivek Kumar Agrawal
7047 by: Stefan Siefert
Re: [PHP-QA] Version 4.2.0 - phpinfo() shows the old build information after rebuild
7048 by: Melvyn Sopacua
Help with php installation on iis
7049 by: Ragnar
7050 by: Chris Hewitt
7052 by: Ragnar
Re: PHP 4.2.1 install problem
7051 by: Rasmus Lerdorf
PHP 4.2.0 install problems
7053 by: Dan Stilts
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 All,
Can somebody tell me how to install
PHP with Apache and Sybase on Suse linux.
It would be great help for me.
Regards,
Vivek
--- End Message ---
--- Begin Message ---
Hi,
get the latest sources of apache and php and extract them. Configure Apache
(as example:
./configure --prefix=/the/path/you/like/to/install/apache --enable-module=so
--enable-module=most --enable-shared=max , which would Configure Apache to
be installed in --prefix activate the standard modules and build as Shared
Moduls), then run make and make install.
Then get Sybase (or if your Database Server is on a different Machine the
Sybase-CT Librarys). Install Sybase via RPM .. normaly Sybase is now
installed in /opt/sybase-VERSIONNUMBER bzw. /opt/sybase
Then configure php (as example:
./configure --with-apxs=/the/path/you/like/to/install/apache/bin/apxs --with
-sybase-ct=/opt/sybase) add to this configure String any module you would
like to install (like Socketsupport or anything else, ./configure --help
gives you an idea what is possible). This Configures PHP to build as an
shared Module for the previous installed apache. Then run make and make
install ..
maybe you have to edit the httpd.conf to enable php but normaly this is done
through phps make install..
This way should work for every distro (the only tricky part in my Opinion is
to install Sybase)..
At least .. which Sybase Database System would you like to connect to ...
Sybase ASA or the big on Sybase ASE?
Greetings,
Stefan Siefert
-----Ursprüngliche Nachricht-----
Von: Vivek Kumar Agrawal [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 20. Mai 2002 09:20
An: PHP Install
Betreff: [PHP-INST] Installing PHP with Apache and Sybase on Linux
Hi All,
Can somebody tell me how to install
PHP with Apache and Sybase on Suse linux.
It would be great help for me.
Regards,
Vivek
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
At 22:12 19-5-2002, Deniz shared with all of us:
>./configure --with-mysql=/usr/local/mysql --with-xml --with-apache=../apache
>_1.3.24 --enable-track-vars
[snip]
>:run configure with new options
> >./configure --with-mysql --with-xml --with-imap=/usr/local/imap-2001a/c-cli
>ent --enable-sockets --enable-track-vars --with-apxs=/usr/local/apache/bin/a
>pxs
Apxs now?
>:run httpd -l to double check
>/usr/local/apache/bin# ./httpd -l
>Compiled-in modules:
Notice: compiled-in!
[snip]
>mod_php4.c
Which is logical.
The apache binary has been configured, with a static php before,
so php is in there already.
You need to rebuild apache, without php (ie, remove
--activate-module=src/modules/libphp4.a from the configure line, of the old
source tree), make sure you have --enable-module=so in there, then rebuild
apache, make, make install.
After that, you can configure php as you've done.
Make sure:
LoadModule
and
AddModule
statements are added for php in conf/httpd.conf.
Met vriendelijke groeten / With kind regards,
IDG.nl
Melvyn Sopacua
Webmaster
--- End Message ---
--- Begin Message ---
I have tested php on apache server and on IIS in XP pro.
None of the above have been succesful. The following example does not work,
the "Hi, I'm a PHP script" does not appear in the browser:
<html>
<head>
<title>Example</title>
</head>
<body>
<?php echo "Hi, I'm a PHP script!"; ?>
</body>
</html>
There is NO errormessage, but the browser remains blank.
Im using iis 5.1 and the latest php installation program.
Anyone know what the problem is?
--- End Message ---
--- Begin Message ---
Ragnar,
I have pasted your script into my /var/www/html directory and I agree
that the browser is blank. View Source shows the source. I assume that
you have not set httpd.conf to parse ".html" files with php but to
assume it is pure html. This is why the output is not seen. I used the
filename "test1.html". As soon as I changed the filename to "test1.php"
the output is seen as you intended.
Regards
Chris
Ragnar wrote:
>I have tested php on apache server and on IIS in XP pro.
>
>None of the above have been succesful. The following example does not work,
>the "Hi, I'm a PHP script" does not appear in the browser:
>
><html>
><head>
><title>Example</title>
></head>
><body>
><?php echo "Hi, I'm a PHP script!"; ?>
></body>
></html>
>
>There is NO errormessage, but the browser remains blank.
>
>Im using iis 5.1 and the latest php installation program.
>
>Anyone know what the problem is?
>
>
>
--- End Message ---
--- Begin Message ---
Thank you Chris!!
-Ragnar
"Chris Hewitt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ragnar,
>
> I have pasted your script into my /var/www/html directory and I agree
> that the browser is blank. View Source shows the source. I assume that
> you have not set httpd.conf to parse ".html" files with php but to
> assume it is pure html. This is why the output is not seen. I used the
> filename "test1.html". As soon as I changed the filename to "test1.php"
> the output is seen as you intended.
>
> Regards
>
> Chris
>
> Ragnar wrote:
>
> >I have tested php on apache server and on IIS in XP pro.
> >
> >None of the above have been succesful. The following example does not
work,
> >the "Hi, I'm a PHP script" does not appear in the browser:
> >
> ><html>
> ><head>
> ><title>Example</title>
> ></head>
> ><body>
> ><?php echo "Hi, I'm a PHP script!"; ?>
> ></body>
> ></html>
> >
> >There is NO errormessage, but the browser remains blank.
> >
> >Im using iis 5.1 and the latest php installation program.
> >
> >Anyone know what the problem is?
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Apache 2 + PHP is not fully baked yet. There are many issues and it will
be a while. If you want something that works, use Apache 1.3.
-Rasmus
On Sun, 19 May 2002, Defryn NZ wrote:
> Hi There,
>
> I am new to PHP and Unix and I am getting install problems.
> I am using PHP 4.2.1 , Apache 2.0.36 and Freebsd 4.4
>
> I have installed apache from source first and that works fine
> After installation the httpd can be started
>
> I install php from source
>
> ./configure -prefix=/usr/local/apache/php -with-apxs2=/usr/local/apache/bin/
> apxs -with-config-file-path=/usr/local/apache/php -with-mysql=/usr/local/mys
> ql
>
> After running make and make install I try to start the httpd ./apachectl
> start
>
> This is what I get
>
> Syntax error on line 229 of /usr/local/apache/conf/httpd.conf
>
> Cannot load /usr/local/apache/modules/libphp4.so into server
> /usr/local/apache/modules/libphp4.so : Undefined symbol
> "pthread_getspecific"
> /usr/local/apache/bin/apachectl start : httpd could not be started
>
>
> I have the following in my conf file
>
> Under dynamic dhared object
> LoadModule php4_module modules/lib4php.so
>
> Under AddType
>
> AddType application/x-httpd-php .php
>
>
> What is going wrong? Any ideas?
>
> Cheers
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi all,
I am currently trying to compile PHP 4.2.0 as an .so for Apache. First, some
system info:
PHP 4.2.0
Apache 1.3.24 w/modperl 1.26 compiled in.
Solaris 8 Sparc
Here is the configure command I ran:
./configure --with-mysql=/software/mysql --enable-calendar --with-apxs=/soft
ware/apache/bin/apxs --with-db3=/usr/local/BerkeleyDB --with-pgsql=/software
/pgsql --with-gettext
Now everything looks good when I configure, make and make install, but the
problem comes when I try to fire up Apache. I recieve the following:
Syntax error on line 17 of /usr/local/apache/conf/httpd.conf:
Cannot load /software/apache/libexec/libphp4.so into server: ld.so.1:
/software/apache/bin/httpd: fatal: relocation error: file
/software/apache/libexec/libphp4.so: symbol __cmpdi2: referenced symbol not
found
Line 17 of the httpd.conf file reads:
LoadModule php4_module libexec/libphp4.so
I think that covers it all. Any help would be great.
Thanks,
Dan
--- End Message ---