php-install Digest 29 Sep 2002 14:13:27 -0000 Issue 1045
Topics (messages 8601 through 8605):
IIS 6.0 and Windows .Net Server
8601 by: Cedric Perthuis
Re: with-oci8 and RedHat distribution
8602 by: Jim Thome
PHP 4.2.3 problem - phpinfo.phtml works find, phpinfo.php asks to save/open
8603 by: Thistle
php compile error
8604 by: Jonas Geiregat
Re: Solaris8/intel PHP binaries .. PLEASE !!
8605 by: Jonas Geiregat
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 ---
Here is a description on how to install PHP under Windows .Net Server ( IIS 6.0 )
I answered to a post in the windows newsgroup, but the right place of this should be
here.
If there is someone responsible for the file install.txt of the installation, feel
free to adpat this text and add it to the installation procedure section.
First of all the installer doesn't work because an ActiveX object used to configure
IIS is not present or not available when you try to install PHP.
- So download the zip file instead.
- rename/modify/copy php.ini to your C:/WINDOWS directory.
- copy the file php4ts.dll to C:/WINDOWS/SYSTEM32 ( required, I don't know why, it is
supposed to be used only if you use extension...but even without extensions it doesn't
work without it )
IIS 6.0 disable by default all the ISAPI extensions:
- go to the IIS management console panel
- You have 4 subsections, FTP sites, Application Pools, Web Sites and Web Service
Extensions
- Go to Web Service Extensions
- For the first try, Allow "All Unknown ISAPI extension" then you will be able to
create an entry for the PHP and juste allowing it, I didn't try it yet.
- go now in Web Sites, and do the classic extension mapping at the top level of your
web sites heirarchy
- in Home Directory, click on Configuration, and now add the [your
path]/php4isapi.dll file with the extension .php
- in Home Directory, allow Script and Executable or only Scripts
et voila ! You don't have to restart anything, it just work now.
Cedric.
--- End Message ---
--- Begin Message ---
Just compile oci-8 as a self contained extension, and you don't have to do anything
with your PHP setup. Information on how to do this is included in the PHP
distribution (README.self-contained-extensions).
Jim
>>> "Dan Trottier" <[EMAIL PROTECTED]> 09/28/02 18:08 PM >>>
Hi,
My apologies if this has been answered previously. I have an install of
RedHat Advanced Server 2.1 that includes Apache 1.3 and php support. The
configure line as the installation came defaulted to is:
'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-curl'
'--with-db3' '--with-dom=/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-gd' '--with-gdbm' '--with-gettext'
'--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-ttf' '--with-xml' '--with-expat-dir=/usr' '--with-zlib'
'--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8'
'--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos'
'--with-ldap=shared,/usr' '--with-mysql=shared,/usr'
'--with-pgsql=shared,/usr' '--with-unixODBC=shared,/usr'
'--with-apxs=/usr/sbin/apxs'
I've installed Oracle 9i on this system and I want PHP to use the OCI8
extension. Unfortunately the configure options above have --without-oci8
defined. I didn't install all the development packages which I now regret.
Documentation indicates I need to recompile php
with --with-oci8=$ORACLE_HOME to get this to work. If I try to use the same
configure options as above I end up having to extract tons of RPM packages.
Can anyone suggest what a reasonable set of configure options are or
possibly a list of all RedHat RPMS that would need to be installed in order
to configure php with the same options as in the default distribution.
Any help or pointers would be appreciated.
Thanks,
dan
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Greetings!
I am trying to install PHP 4.2.3 as a module running with Apache 1.3.26 on a
RH7.2 Linux box.
The problem I am having is this: I created a test page (phpinfo.php) with the
<? phpinfo(); ?> command and tried to load the page, I get a dialogue box
asking if I wish to save or open the file (this also occurs with any other
xxxx.php page I try to view in a browser). After a few hours of scouring this
list and reading/re-reading the installation instructions for both Apache and
PHP,(and pulling out fistfulls of my already disappearing hair), I renamed the
page as phpinfo.phtml... and it WORKED! Still no luck with .php pages however
:/
I tried reinstalling from the beginning, both Apache and PHP, in case I did
something wrong, several times. Same problem.
Frankly, I am stumped as to why .phtml works, yet .php refuses to. In
httpd.conf, I added the AddType line for both types. The LoadModule and
AddModule lines in httpd.conf for PHP appear to be correct as well.
I am hoping someone here has some insight on this issue.
Here is what I did last:
Installed Apache 1.3.26 as follows:
removed old install
>make clean
>./configure --enable-shared=max --enable-module=all --prefix=/webserver
--enable-module=so --enable-rule=SHARED_CORE --without-execstrip
--server-uid=webuser --server-gid=webuser
>make
>make install
-- tweak httpd.conf with servername and document root
>apachectl restart
RESULT: Apache appears to work fine
Installed PHP4.2.3 as follows:
>make distclean
> ./configure --with-mysql --with-imap-ssl --with-kerberos --enable-track-vars
--with-apxs=/webserver/bin/apxs
>make
>make install
> cp php.ini-dist to proper location and rename to php.ini
--tweak httpd.conf as follows:
(LoadModule php4_module libexec/libphp4.so is present)
(AddModule mod_php4.c is present)
Inserted a line AddType application/x-httpd-php .phtml .php
(When this failed to solve the problem, I even tried changing it to
AddType application/x-httpd-php .php .phtml also tried adding a seperate line
for each extension. I even went so far as to try adding the extensions directly
into the mime.types file)
-- verified engine=on in php.ini file
-- verified include path in php.ini file
>apachectl restart
Page phpinfo.phtml shows up correctly. The page phpinfo.php asks to OPEN/SAVE
the file.
I would appreciate hearing any ideas on why this is occurring, I am sure I
overlooked something obvious or simple ;)
Regards,
Thistle
--- End Message ---
--- Begin Message ---
I'm trying to compile php as apache module
Code:
./configure --prefix=/wwwroot/php --with-apxs2=/wwwroot/bin/apxs
--with-config-file-path=/wwwroot/php --with-mysql
gives me no errors
then I run make
Code:
make[4]: Weggaan uit map `/usr/src/php-4.2.3/ext/xml/expat'
make[3]: Weggaan uit map `/usr/src/php-4.2.3/ext/xml/expat'
make[3]: Binnengaan van map `/usr/src/php-4.2.3/ext/xml'
make[3]: Niets te doen voor `all-p'.
make[3]: Weggaan uit map `/usr/src/php-4.2.3/ext/xml'
make[2]: Weggaan uit map `/usr/src/php-4.2.3/ext/xml'
make[1]: Weggaan uit map `/usr/src/php-4.2.3/ext'
Making all in sapi
make[1]: Binnengaan van map `/usr/src/php-4.2.3/sapi'
Making all in apache2filter
make[2]: Binnengaan van map `/usr/src/php-4.2.3/sapi/apache2filter'
make[3]: Binnengaan van map `/usr/src/php-4.2.3/sapi/apache2filter'
/bin/sh /usr/src/php-4.2.3/libtool --silent --mode=compile gcc -I.
-I/usr/src/php-4.2.3/sapi/apache2filter -I/usr/src/php-4.2.3/main
-I/usr/src/php-4.2.3 -I/wwwroot/include -I/usr/src/php-4.2.3/Zend
-I/usr/src/php-4.2.3/ext/mysql/libmysql
-I/usr/src/php-4.2.3/ext/xml/expat -D_REENTRANT
-I/usr/src/php-4.2.3/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic
-c sapi_apache2.c
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:567: incompatible type for argument 3 of
`ap_register_output_filter'
sapi_apache2.c:567: too many arguments to function
`ap_register_output_filter'
sapi_apache2.c:568: incompatible type for argument 3 of
`ap_register_input_filter'
sapi_apache2.c:568: too many arguments to function
`ap_register_input_filter'
make[3]: *** [sapi_apache2.lo] Fout 1
make[3]: Weggaan uit map `/usr/src/php-4.2.3/sapi/apache2filter'
make[2]: *** [all-recursive] Fout 1
make[2]: Weggaan uit map `/usr/src/php-4.2.3/sapi/apache2filter'
make[1]: *** [all-recursive] Fout 1
make[1]: Weggaan uit map `/usr/src/php-4.2.3/sapi'
make: *** [all-recursive] Fout 1
what could be my probleme ?
--- End Message ---
--- Begin Message ---
use the linux binaries they work
Phpio wrote:
> hi guys..
>
> i've really seached alot for Soalris8/intel PHP binaries with no result..
> i've tried also to do the compiling but every tme thier is a lots of
> errors..
> so my only solution now is to find any pre-made binaries for Solaris8/i386
> platforme
>
> my question is : does it exist ?
>
> thanx alot
>
>
--- End Message ---