[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
About installing php3 in rh5.2 questions.
- From: =?big5?b?vbKk0bav?= <scop ms tung-li com tw>
- To: redhat-install-list redhat com
- Subject: About installing php3 in rh5.2 questions.
- Date: Fri, 13 Aug 1999 17:44:27 +0800
Dear all:
I got some problem on installing php3+apache+mysql
I had installed apache and mysql before.
I install php3 support apache and mysql so i read the faq of php3.
1.It is not run to support php scrept even i install php3 module ok.
2.When i recompile the spec file about php3 to support mysql ,
php.h:183: ap_config.h: No such file or directory
php.h:189: ap_compat.h: No such file or directory
php.h:191: httpd.h: No such file or directory
php.h:192: http_main.h: No such file or directory
php.h:193: http_core.h: No such file or directory
php.h:194: http_request.h: No such file or directory
php.h:195: http_protocol.h: No such file or directory
php.h:196: http_config.h: No such file or directory
php.h:197: http_log.h: No such file or directory
make: *** [language-parser.tab.o] Error 1
Bad exit status from /var/tmp/rpm-tmp.40357 (%build)
Does somebody can help me? Thanks!!
Scop Zorn
The faq tell me doing:
Assuming you installed Apache PHP completely with RPMS, you need to uncomment or
add
some or all of the following lines in your http.conf
file:
# Extra Modules
AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_perl.c
# Extra Modules
LoadModule php_module modules/mod_php.so
LoadModule php3_module modules/libphp3.so
LoadModule perl_module modules/libperl.so
And add:
AddType application/x-httpd-php3 .php3
To the global properties, or to the properties of the
VirtualDomain you want to have PHP support added to.
First remove mod_php3
rpm -e mod_php3
Then get the source rpm and INSTALL it, NOT --rebuild
rpm -Uvh mod_php3-3.0.5-2.src.rpm
Then edit the /usr/src/redhat/SPECS/mod_php3.spec file
In the %build section add the database support you
want, and the path.
For MySQL you would add --with-mysql=/usr \
The %build section will look something like this:
./configure --prefix=/usr \
--with-apxs=/usr/sbin/apxs \
--with-config-file-path=/usr/lib \
--enable-debug=no \
--enable-safe-mode \
--with-exec-dir=/usr/bin \
--with-mysql=/usr \
--with-system-regex
Once this modification is made then build the binary
rpm as follows:
rpm -bb /usr/src/redhat/SPECS/mod_php3.spec
Then install the rpm
rpm -ivh
/usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm
Make sure you restart Apache, and you now have PHP with
MySQL
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]