無料スクリプト配布のPHP.TO   PHPの実用的なtips PHPマニュアル MySQLマニュアル Apacheマニュアル PostgreSQLマニュアル マニュアル検索    

??

? PHP ???????? PHP (OSX MacOS )??? OS ?? ???

PHP ???????? ???

?Apache 2 ? MPM ???????????

PHP ??()???????? ???? Web ??????? ?????????? ???? PHP ?????????? ??????OS Web ????? ???? ????PHP ??? ????? ?????? ????? ?????????????? ???????? PHP ????

? MPM ?? PHP ????? FastCGI ??

Unix/Windows: php.ini ???????

UNIX ????? /usr/local/lib ?? --with-config-file-path ??????? ?????

--with-config-file-path=/etc
???? php.ini-development /etc/php.ini ??? ??

--with-config-file-scan-dir=PATH

Windows ?php.ini ???? Windows ?????? Apache ????? Apache ??????? (? c:\program files\apache group\apache ? php.ini ????? php.ini ??? Apache ??????

?????

Unix: PHP ????????? 'Document Contains No Data(????)' ? ?????

?? PHP ?????? ??????? ????????? ? 'gdb' ????????? ???????? ???PHPApache????? ????

  • httpd ??

  • gdb httpd

  • Stop your httpd processes

  • > run -X -f /path/to/httpd.conf

  • ?? URL ??

  • > run -X -f /path/to/httpd.conf

  • ??? gdb ??

  • bt ???

  • ????????? » http://bugs.php.net/ ??

????? (preg_match() ??) ??? PHP Apache ???????????? PHP Apache 1.3.x ????????

Unix: RPM ? PHP ?????Apache PHP ? ??????

? Apache PHP RPM ???????? ??? httpd.conf ???? ???

# Extra Modules
AddModule mod_php.c
AddModule mod_perl.c

# Extra Modules
LoadModule php_module         modules/mod_php.so
LoadModule php5_module        modules/libphp5.so
LoadModule perl_module        modules/libperl.so
???
AddType application/x-httpd-php .php
???? PHP ??? ????

Unix: Apache FrontPage ???? PHP ???????PHP Apache FrontPage ??????????

PHP FrontPage ????? FrontPage ??? PHP ? Apache ???????? PHP ??('make clean; make' ??) ?

Unix/Windows: PHP ??????? PHP ???????

????????? PHP ????????? PHP ???????????? ???????? PHP ???????????

Unix/Windows: PHP ??????? PHP ??? Internal Server Error 500 ?????

? PHP ??????? ??????????? PHP ???(Windows ? php.exe) ????? php -i ??? ? PHP ???????? ????????? ? HTML(phpinfo() ?)??? PHP ???????? ????????

PHP ???????????? Apache ?? undefined symbol ???
[mybox:user /src/php5] root# apachectl configtest
 apachectl: /usr/local/apache/bin/httpd Undefined symbols:
  _compress
  _uncompress

?PHP ???? MySQL ????? ?? --with-zlib ??? ?????? MySQL FAQ ????

Windows: PHP ??????? PHP ? ??????
cgi error:
 The specified CGI application misbehaved by not
 returning a complete set of HTTP headers.
 The headers it did return are:

? PHP (?)??? ?????????? ???? PHP ???(Windows ? php.exe)????? php -i ???? PHP ?? ????? ??????????? HTML (phpinfo()?) ??? PHP ?????

PHP ????????? PHP ?? ????????? ?????

  • PHP ?? php.exephp5ts.dll php.ini ????? PHP ? ???????? IUSER_<machinename> ??? ????
  • ????(??????? ?????????) IIS ???Internet Service Manager ?? ???????????? ???????????? ????? 404 ?? ?????? IIS ??? NTLanMan ??????? ??????
Windows: ??? PHP IIS ???!

PHP ?????? php.exe ???????? ???IIS ??????? ?? php.exe ?? ??????????? php.exe ?????IIS4 ? PHP ??????????? FAQ ??

IIS, PWS, OmniHTTPD, XitamiCGI?PHP??? ??:Security Alert! PHP CGI cannot be accessed directly.

cgi.force_redirect 0 ??????? 1 ????????? ; ???????? ???????? php.ini ???

??? 1 ??100% php.ini ?? ???????? ?? FAQ ??

php.ini ?????????? ??? ?????????

php.ini ?? PHP ??????? phpinfo() ????? ?? Configuration File (php.ini) ?? PHP ?? php.ini ?? ????????????? ???????????? ??? php.ini ?? php.ini PATH ??????

php.ini ????? PHP ???? ??php.ini ?? Web ???

php_ini_loaded_file() ??

Windows PHP ??? PATH ??????

Windows NT ?? Windows Server 2000 ????

  • ???????? -> -> ??? -> ??? Windows XP/2003 ??? -> ??? -> ??

  • ??????

  • ??????

  • ?????

  • Path ????????????

  • Path ????

  • ? ';' ? PHP ????? : ;C:\php?

  • OK ??

Windows 98/Me ??autoexec.bat ????

  • ??? -> ????? ? notepad ???

  • C:\autoexec.bat ???

  • PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;..... ?? ?? ;C:\php ??

  • ?????

: ??????? PATH ???????

PHP ??????? Windows ???? ?????????? C:\WindowsC:\WINNT?? ??????? PATH ???? Windows ??????????? ???????????

Windows PHP ?php.ini ????????

??Apache ???Apache ???Apache 1Apache 2??? ??? PHPRC ? ???

Windows NT2000XP 2003 ??

  • ???????? -> -> ??? -> ??? Windows XP/2003 ? -> ??? -> ??

  • ??????

  • ??????

  • ?????

  • ?????? 'PHPRC' ?? php.ini ????: C:\php???

  • OK ?????

Windows 98/Me ??autoexec.bat ????

  • ??? -> ????? ? notepad ???

  • C:\autoexec.bat ???

  • ????????set PHPRC=C:\phpC:\php ?? php.ini ??????????? ??????? PHP C:\Program Files\PHP ????? C:\PROGRA~1\PHP ??? ?

  • ?????

Apache ???MultiViews ?? PHP ????????

?? PHP ??????? ???? FAQ ????? PHP ?????? URL PHP ??????????? ?AddType application/x-httpd-php .php ?????

AddHandler php5-script php
AddType text/html php
??Apache 1 ????????? PHP ?? php-script ????

PHP ????? GET POST ???

????: CONNECT???? ????header() ???? GET POST ??Apache ???

<LimitExcept GET POST>
Deny from all
</LimitExcept>



powered by SEO.CUG.NET