ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexei Bayguzov <mrbond@itc.nstu.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: Apache + PHP
Date: Thu, 24 Apr 2003 14:27:08 +0700
Message-ID: <20030424142708.16780849.mrbond@itc.nstu.ru> (raw)
In-Reply-To: <000b01c30a30$a16d7900$993343c2@kj4leawldneajif>

On Thu, 24 Apr 2003 13:10:46 +0600
Евгений Ананьев <linuxsoid@newmail.ru> wrote:

> > 24 Апрель 2003 , Leonid B. Sysoletin написал:
> > В каком месте вам нужно, чтобы они работали?
> Чтобы apache работал совместно с php, например, вызываем index.php и apache
> передает файл интерпритатору, интерпритатор обрабатывает файл, затем отдаёт
> апачу сгенерированый html и апач его передаёт в браузер кленту. По моему
> понятно написано ;-)

Ну дык и поставте mod_php для апача. То что у вас в /usr/bin/php - это консольный вариант.
Кстати его можно использовать как cgi-bin IMHO. А в httpd.conf - следющие строчки:

$ cat /etc/httpd/conf/httpd.conf | grep php
    DirectoryIndex index.html index.htm index.shtml index.php index.php3 index.php4 index.phtml
    # http://www.php.net) will typically use:
    #AddType application/x-httpd-php3 .php3
    #AddType application/x-httpd-php3-source .phps
    #AddType application/x-httpd-php .php
    #AddType application/x-httpd-php-source .phps
Include conf/addon-modules/mod_php4.conf

$ cat /etc/httpd/conf/addon-modules/mod_php4.conf 
LoadModule php4_module        /usr/lib/apache/libphp4.so
AddModule mod_php4.c

AddType  application/x-httpd-php         .php .php4 .php3 .phtml
AddType  application/x-httpd-php-source  .phps
AddHandler application/x-httpd-php .php .php4 .php3 .phtml

Надеюсь дальше сами разберетесь?

С уважением,
    Алексей
----------------------------------------
Alexei V. Bayguzov		
E-mail: mrbond@itc.nstu.ru
----------------------------------------


  parent reply	other threads:[~2003-04-24  7:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-24  6:50 ` [Comm] " Leonid B. Sysoletin
2003-04-24  7:10   ` [Comm] " Евгений Ананьев
2003-04-24  7:17     ` Leonid B. Sysoletin
2003-04-24  7:27     ` Alexei Bayguzov [this message]
2003-04-24  7:32       ` Leonid B. Sysoletin
2003-04-24  7:50         ` Alexei Bayguzov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030424142708.16780849.mrbond@itc.nstu.ru \
    --to=mrbond@itc.nstu.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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