From: "Маркелов Александр" <markelov@13.net.ru> To: sisyphus@altlinux.ru Subject: [sisyphus] PHP и PHPRC Date: Fri, 28 May 2004 15:48:58 +0400 Message-ID: <40B7272A.7040004@13.net.ru> (raw) Доброго времени суток. Уже не знаю что делать не хочет PHP(cli или cgi) искать php.ini в PHPRC. Хотя сама переменная прописывается. [deep@13 deep]$ pwd /home/deep [deep@13 deep]$ cp /etc/php/4.3.7/cli/php.ini . [deep@13 deep]$ export PHPRC=/home/deep [deep@13 deep]$ echo "<?phpinfo()?>" | php phpinfo() PHP Version => 4.3.7-dev/ALT System => Linux 13.net.ru 2.4.26-std-smp-alt2 #1 SMP Mon May 17 23:45:22 MSD 2004 i686 Build Date => May 24 2004 12:47:49 Configure Command => './configure' '--build=i586-alt-linux' '--host=i586-alt-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/lib' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--without-included-gettext' '--enable-cli' '--disable-cgi' '--enable-shared=yes' '--enable-static=no' '--disable-rpath' '--enable-inline-optimization' '--enable-memory-limit' '--disable-debug' '--enable-pic' '--prefix=/usr' '--with-zlib=/usr' '--disable-magic-quotes' '--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-regex=system' '--enable-sysvsem' '--enable-sysvshm' '--with-mm' '--with-dbase' '--with-filepro' '--enable-ftp' '--with-gettext' '--enable-yp' '--enable-session' '--enable-shmop' '--enable-calendar' '--enable-bcmath' '--enable-ctype' '--with-iconv' '--without-mysql' '--with-layout=gnu' '--enable-xml' '--with-expat-dir=/usr' '--enable-wddx' '--without-pear' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /etc/php/4.3.7/cli/php.ini ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - старый путь [...skip...] Environment Variable => Value LESSKEY => /etc/.less HOSTNAME => 13.net.ru SHELL => /bin/bash TERM => xterm HISTSIZE => 999 SSH_CLIENT => 192.168.1.27 2661 22 TMPDIR => /home/deep/tmp OLDPWD => / PHPRC => /home/deep ^^^^^^^^^^^^^^^^^^^ - переменная есть. SSH_TTY => /dev/pts/3 USER => deep [...skip...] PHP Variables Variable => Value PHP_SELF => - _SERVER["LESSKEY"] => /etc/.less _SERVER["HOSTNAME"] => 13.net.ru _SERVER["SHELL"] => /bin/bash _SERVER["TERM"] => xterm _SERVER["HISTSIZE"] => 999 _SERVER["SSH_CLIENT"] => 192.168.1.27 2661 22 _SERVER["TMPDIR"] => /home/deep/tmp _SERVER["OLDPWD"] => / _SERVER["PHPRC"] => /home/deep ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - переменная есть. Хоть ты тресни, не меняет путь к файлу настроек и все. Да, можно использовать php -c /home/deep но мне надо это для cgi в Apache. Что бы делать SetEnv PHPRC /home/deep. Есть идеи ?
next reply other threads:[~2004-05-28 11:48 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-05-28 11:48 Маркелов Александр [this message] 2004-05-31 9:50 ` Alexey Gladkov 2004-05-31 13:56 ` Маркелов Александр 2004-05-31 10:12 ` Alexey Gladkov 2004-06-01 6:18 ` Маркелов Александр
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=40B7272A.7040004@13.net.ru \ --to=markelov@13.net.ru \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git