Apache2 + PHP5 ENV

Roman Neuhauser neuhauser at chello.cz
Fri Mar 4 00:50:40 CET 2005


# konferencie at balint.sk / 2005-03-04 00:16:53 +0100:
> Trochu ma znepokojuje vystup z phpinfo v sekcii Environment:

    Ktera cast vystupu konkretne vas znepokojuje?

> http://alpha.balint.sk/index.php
> 
> Environment
> Variable    Value
> MACHTYPE     i386
> USER     root
> MAIL     /var/mail/root
> LD_LIBRARY_PATH     /usr/local/lib/apache2:
> SHLVL     1
> VENDOR     intel
> HOME     /root
> PAGER     more
> GROUP     wheel
> LOGNAME     root
> TERM     xterm
> BLOCKSIZE     K
> PATH     
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
> REMOTEHOST     195.113.65.7
> HOST     alpha.balint.sk
> SHELL     /bin/csh
> OSTYPE     FreeBSD
> PWD     /root
> FTP_PASSIVE_MODE     YES
> HOSTTYPE     FreeBSD
> EDITOR     vi
> 
> Je normalne, ze su tieto udaje v tomto vystupe?

    Je to bezne.

> apache som spustil ako root - apachectl start

    od vaseho shellu se to doforkovalo/doexecovalo az do toho httpd,
    a prostredi se dedi. pokud chcete, aby ten apache startoval
    v prazdnem prostredi, zmente hodnotu promenne $command v
    rc.d/apache2.sh z "/usr/local/sbin/httpd" na
    "/usr/bin/env -i /usr/local/sbin/httpd". Nektere veci by pak ale
    nemusely spravne fungovat (cgi skripty), pamatuju si napriklad,
    ze oci8 (Oracle) rozhrani v PHP vyzadovalo $ORACLE_HOME (nebo tak
    nejak) v prostredi. Promenne se daji nastavit v $command.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html



More information about the Users-l mailing list