ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Micro HOWTO: PHP и Oracle (oci8)
@ 2003-01-24 11:24 Viktor S. Grishchenko
  0 siblings, 0 replies; only message in thread
From: Viktor S. Grishchenko @ 2003-01-24 11:24 UTC (permalink / raw)
  To: community


Удалось красиво собрать поддержку OCI8 для PHP RPM'ом.

1. Берем php-pgsql.spec, как удобный шаблон, переназываем php-oci8.spec
2. Внутри правим: "%define package_name oci8"
3. Добавляем в spec или просто
	export SHLIB_SUFFIX_NAME=so
	export ORACLE_HOME=/home/oracle/OraHome1/ (или как есть)
4. Доставляем пакеты методом проб и ошибок (rpm -ba ./php-oci8.spec)
5. RPM готов, ставим.
6. В /etc/init.d/httpd добавляем export ORACLE_HOME=..., в 
/etc/httpd/conf/php.ini (именно в этом php.ini) добавляем extension oci8.so
7. Вуаля.

Спасибо Александру Боковому и разработчикам PHP за механизм PHP extensions.

-- 

			В.С.Г.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-24 11:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-24 11:24 [Comm] Micro HOWTO: PHP и Oracle (oci8) Viktor S. Grishchenko

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git