cvs: phpdoc /ja/faq build.xml
| From: | Rui Hirokawa | Date: | Sun, 18 Nov 2001 04:03:39 +0000 |
| Subject: | cvs: phpdoc /ja/faq build.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969338962@lists.php.net to get a copy of this message | ||
hirokawa Sat Nov 17 23:03:39 2001 EDT
Modified files:
/phpdoc/ja/faq build.xml
Log:
updated translation.
Index: phpdoc/ja/faq/build.xml diff -u phpdoc/ja/faq/build.xml:1.2 phpdoc/ja/faq/build.xml:1.3 --- phpdoc/ja/faq/build.xml:1.2 Wed Nov 14 17:55:18 2001 +++ phpdoc/ja/faq/build.xml Sat Nov 17 23:03:39 2001 @@ -118,21 +118,22 @@ </question> <answer> <para> - Take a look at the link line and make sure that all of the appropriate - libraries are being included at the end. Common ones that you might have - missed are '-ldl' and any libraries required for any database support - you included. - </para> - <para> - If you're linking with Apache 1.2.x, did you remember to add the - appropriate information to the EXTRA_LIBS line of the Configuration - file and re-rerun Apache's Configure script? See the - <ulink url="&faqurl.file.installation;">INSTALL</ulink> file that - comes with the distribution for more information. - </para> - <para> - Some people have also reported that they had to add '-ldl' immediately - following '<filename>libphp3.a</filename>' when linking with Apache. + æå¾ã«é©åãªã©ã¤ãã©ãªãå ¨ã¦ã¤ã³ã¯ã«ã¼ãããã¦ãããã©ãã確èªã + ã¦ä¸ãããããããã®ã¯ã'-ldl'ãæå®ãããã¼ã¿ãã¼ã¹ã®ãµãã¼ãæ© + è½ã«å¿ è¦ãªã©ã¤ãã©ãªã®æå®ãæ¬ ãã¦ããã¨ãããã®ã§ãã + </para> + <para> + Apache 1.2.xã¨ãªã³ã¯ããå ´åã«ã¯ãé©å½ãªæ å ±ãConfigurationãã¡ + ã¤ã«ã®EXTRA_LIBSã®è¡ã«è¿½å ããApacheã® Configureã¹ã¯ãªãããå度 + å®è¡ãããã©ããã確èªãã¦ä¸ãããããè©³ç´°ãªæ å ±ã«ã¤ãã¦ã¯ãé å¸ + ãã¡ã¤ã«ã«ä»å±ãããã¡ã¤ã« + <ulink url="&faqurl.file.installation;">INSTALL</ulink>ãåç §ä¸ + ããã + </para> + <para> + ä½åãã®äººããApacheã¨ãªã³ã¯ããéã«' + <filename>libphp3.a</filename>'ã®ç´å¾ã«'-ldl'ã追å ããå¿ è¦ãã + ããã¨ãå ±åããã¦ãã¾ãã </para> </answer> </qandaentry> @@ -145,59 +146,67 @@ </question> <answer> <para> - This is actually quite easy. Follow these steps carefully: + ãã®æé ã¯å®éã«ã¯é常ã«ç°¡åã§ãã以ä¸ã®æé ã«æ³¨ææ·±ãå¾ã£ã¦ä¸ã + ãã <itemizedlist> <listitem> <simpara> - Grab the latest Apache 1.3 distribution from - <ulink url="&faqurl.apache;">&faqurl.apache;</ulink>. + <ulink url="&faqurl.apache;">&faqurl.apache;</ulink>ããææ° + ã®Apache 1.3é å¸ãã¡ã¤ã«ãåå¾ãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Ungzip and untar it somewhere, for example - <filename>/usr/local/src/apache-1.3</filename>. + ãããã©ãããä¾ãã°ã + <filename>/usr/local/src/apache-1.3</filename>ã§ + ungzipãuntarãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Compile PHP by first running - <command>./configure --with-apache=/<path>/apache-1.3</command> - (substitute <path> for the actual path to your apache-1.3 directory. + ã¾ãã + <command>./configure + --with-apache=/<path>/apache-1.3</command>ãå®è¡ããPHP + ãã³ã³ãã¤ã«ãã¦ä¸ããã + (<path> ã®é¨åã¯å®éã®apache-1.3ãã£ã¬ã¯ããªã®ãã¹ã«ç½® + ãæãã¦ä¸ãã) </simpara> </listitem> <listitem> <simpara> - Type '<literal>make</literal>' followed by '<literal>make install</literal>' - to build PHP and copy the necessary files to the Apache distribution tree. + '<literal>make</literal>' ãå®è¡ããå¾ã'<literal>make + install</literal>'ãå®è¡ãã¦ä¸ãããããã«ãããPHPãæ§ç¯ããã + å¿ è¦ãªãã¡ã¤ã«ãApacheã®ã½ã¼ã¹ããªã¼ã«ã³ãã¼ããã¾ãã </simpara> </listitem> <listitem> <simpara> - Change directories into to your <filename>/<path>/apache-1.3/src</filename> - directory and edit the <filename>Configuration</filename> file. - At the end of the file, add: - <literal>AddModule modules/php3/libphp3.a</literal>. + ãã£ã¬ã¯ããªã + <filename>/<path>/apache-1.3/src</filename>ã«ç§»åãã + <filename>Configuration</filename>ãã¡ã¤ã«ãç·¨éãã¦ä¸ããã + ãã®ãã¡ã¤ã«ã®æå¾ã«ä»¥ä¸ã追å ãã¦ä¸ããã: + <literal>AddModule modules/php3/libphp3.a</literal> </simpara> </listitem> <listitem> <simpara> - Type: '<command>./Configure</command>' followed by '<literal>make</literal>'. + '<command>./Configure</command>' ãå®è¡ããå¾ã' + <literal>make</literal>'ãå®è¡ãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - You should now have a PHP-enabled httpd binary! + 以ä¸ã®æé ã«ããPHP対å¿ã®httpdãã¤ããªãæ§ç¯ã§ãã¾ããã </simpara> </listitem> </itemizedlist> </para> <para> - <emphasis>Note:</emphasis> : You can also use the new Apache - <literal>./configure</literal> script. See the instructions in - the <literal>README.configure</literal> file which is part of - your Apache distribution. Also have a look at the <filename>INSTALL</filename> - file in the PHP distribution. + <emphasis>注æ:</emphasis> : Apache ã®æ°ãã + <literal>./configure</literal>ã¹ã¯ãªããã使ç¨ãããã¨ãå¯è½ã§ãã + Apacheé å¸ãã¡ã¤ã«ã®<literal>README.configure</literal>ãã¡ã¤ã« + ã®æç¤ºãåç §ä¸ãããã¾ããPHPé å¸ãã¡ã¤ã«ã® + <filename>INSTALL</filename> ãã¡ã¤ã«ãåç §ä¸ããã </para> </answer> </qandaentry> @@ -207,48 +216,56 @@ <para> ã¤ã³ã¹ãã¼ã«æé ã«å®å ¨ã«åºã¥ãUNIXä¸ã§Apacheã¢ã¸ã¥ã¼ã«çãã¤ã³ã¹ ãã¼ã«ãã¾ãããããã©ã¦ã¶ã§ã¢ã¯ã»ã¹ããã¨PHPã¹ã¯ãªããã表示ã - ãããã¡ã¤ã«ãä¿åãã¾ããã¨ãããã¾ãã + ãããã¡ã¤ã«ãä¿åãã¾ããã¨å°ãããã¾ãã </para> + </question> <answer> <para> - This means that the PHP module is not getting invoked for some reason. - Three things to check before asking for further help: + ããã¯ãä½ããã®çç±ã«ããPHPã¢ã¸ã¥ã¼ã«ãèµ·åãã¦ããªããã¨ãæ + å³ãã¦ãã¾ããå©ããæ±ãã質åãè¡ãåã«ã¾ã以ä¸ã確èªä¸ããã <itemizedlist> <listitem> <simpara> - Make sure that the httpd binary you are running is the actual - new httpd binary you just built. To do this, try running: + å®è¡ãã¦ããhttpdãã¤ããªãæ§ç¯ããã°ããã®æ°ããhttpdãã¤ã + ãªã§ãããã¨ã確èªãã¦ä¸ããã確èªãè¡ãã«ã¯ä»¥ä¸ã®ããã«å ¥å + ãã¾ãã <literal>/path/to/binary/httpd -l</literal> </simpara> <simpara> - If you don't see <filename>mod_php3.c</filename> listed then you are - not running the right binary. Find and install the correct binary. + <filename>mod_php3.c</filename> ã¾ã㯠+ <filename>mod_php4.c</filename> ããªã¹ãã®ä¸ã«ãªãå ´åãæ£ã + ããã¤ããªãå®è¡ããã¦ãã¾ãããæ£ãããã¤ããªãè¦ã¤ãã¦ã㤠+ ã³ã¹ãã¼ã«ãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Make sure you have added the correct Mime Type to one of your - <literal>Apache .conf</literal> files. It should be: - <literal>AddType application/x-httpd-php3 .php3</literal> (for PHP 3) + <literal>Apache .conf</literal> ãã¡ã¤ã«ã®ï¼ã¤ã«æ£ããMIMEå + ã追å ããã¦ãããã¨ã確èªãã¦ä¸ãããããã¯ä»¥ä¸ã®ããã«ãªã + ã¾ãã + <literal>AddType application/x-httpd-php3 .php3</literal> + (PHP 3ã®å ´å) </simpara> <simpara> - or <literal>AddType application/x-httpd-php .php</literal> (for PHP 4) + ã¾ã㯠<literal>AddType application/x-httpd-php + .php</literal> (PHP 4ã®å ´å) </simpara> <simpara> - Also make sure that this AddType line is not hidden away inside a - <Virtualhost> or <Directory> block which would - prevent it from applying to the location of your test script. + ã¾ãããã®AddTypeã®è¡ãã + <Virtualhost> ã¾ã㯠<Directory> ãããã¯ã®ä¸ã«é + ããã¦ããã¹ãç¨ã®ã¹ã¯ãªããã®å ´æã«é©ç¨ã§ãã¦ããªããããªã + ã¨ããªããã¨ã確èªãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Finally, the default location of the Apache configuration files - changed between Apache 1.2 and Apache 1.3. You should check to - make sure that the configuration file you are adding the AddType - line to is actually being read. You can put an obvious syntax error - into your httpd.conf file or some other obvious change that will - tell you if the file is being read correctly. + æå¾ã«ãããã©ã«ãã®Apacheè¨å®ãã¡ã¤ã«ã®å ´æã¯Apache 1.2㨠+ Apache 1.3ã®éã§å¤æ´ããã¦ãã¾ããAddTypeã®è¡ã追å ããè¨å®ãã¡ + ã¤ã«ãå®éã«èªã¿è¾¼ã¾ãã¦ãããã¨ã確èªãã¦ä¸ããããã®ãã¡ã¤ + ã«ãæ£ããèªã¿è¾¼ã¾ãã¦ããå ´åã«ã¯ãæãããªæ§æã¨ã©ã¼ã + httpd.confãã¡ã¤ã«ã®ä¸ã«æ¸ãè¾¼ãã§ãã¾ã£ãããä½ããã®æãã + ãªå¤æ´ããã£ãå¯è½æ§ãããã¾ãã </simpara> </listitem> </itemizedlist> @@ -267,10 +284,10 @@ </question> <answer> <para> - Well, you decided to try to outsmart the people who wrote those nice - step-by-step instructions for you and you have now discovered that - these people cannot be outsmarted. The libphp4.a file is not supposed to - exist. The Apache build process will create it. + ããªãã¯èªåã®ããã«ç´ æ´ããé åºã ã£ãã¤ã³ã¹ãã¼ã«æé ãæ¸ãã人 + ãåºãæããã¨ãããããã§ããªããã¨ã«æ°ä»ããã®ã§ãã + libphp4.a ãã¡ã¤ã«ã¯åå¨ããªããã°ãããªãããã§ã¯ããã¾ããã + ãã®ãã¡ã¤ã«ã¯ãApacheã®æ§ç¯æã«èªåçã«ä½æããã¾ãã </para> </answer> </qandaentry> @@ -300,34 +317,35 @@ </question> <answer> <para> - There are three things to check here. First, for some reason - when Apache builds the apxs Perl script, it sometimes ends up - getting built without the proper compiler and flags variables. - Edit your apxs (sometimes found in /usr/local/apache/bin/apxs - or /usr/sbin/apxs) and check for these lines: + ããã§ã¯ã確èªãã¹ããã¨ã3ç¹ããã¾ããã¾ããä½ããã®çç±ã«ããã + Apacheãapxs Perlã¹ã¯ãªãããæ§ç¯ããéã«é©å½ãªã³ã³ãã¤ã©ããã© + ã°å¤æ°ãä»ããªãã§æ§ç¯ããã¦ãã¾ããã¨ãæã ããã¾ãã + 使ç¨ãã apxs (/usr/local/apache/bin/apxsã¾ãã¯/usr/sbin/apxsç + ã«ããã¾ã)ãç·¨éãã以ä¸ã®è¡ã確èªãã¦ä¸ããã <programlisting> my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl -my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl +my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl </programlisting> - If this is what you see, you have found your problem. Change these lines - to say: + ä¸è¨ã®ããã«ãªã£ã¦ããå ´åã¯ãåé¡ã§ãããããã®è¡ã以ä¸ã®ããã« + 夿´ãã¦ä¸ããã <programlisting> my $CFG_CFLAGS_SHLIB = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = q(-shared);# substituted via Makefile.tmpl </programlisting> - The second possible problem should only be an issue on RedHat-6.1/6.2. - The apxs script RedHat ships is broken. Look for this line: + å¯è½æ§ã®ãã第2ã®åé¡ã¯ãRedHat-6.1/6.2(ã¾ãã¯ãããå ã«ããã㣠+ ã¹ããªãã¥ã¼ã·ã§ã³)ã§ã®ã¿åå¨ããåé¡ã§ããRedHatãåºè·ãã + apxs ã¹ã¯ãªããã¯å£ãã¦ãã¾ãã以ä¸ã®è¡ãè¦ã¦ä¸ããã <programlisting> my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install </programlisting> - If you see the above line, change it to this: + ä¸ã®è¡ãããå ´åããããæ¬¡ã®ããã«å¤æ´ãã¦ä¸ããã <programlisting> my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install </programlisting> - Last, if you reconfigure/reinstall Apache, add a 'make clean' - to the process after './configure' and before 'make'. + æå¾ã«ãApacheã®configure/åã¤ã³ã¹ãã¼ã«ãè¡ãã¾ãããã®éã + './configure' ã¨'make'ã®éã«'make clean'ãè¡ã£ã¦ä¸ããã </para> </answer> </qandaentry> @@ -341,8 +359,8 @@ </question> <answer> <para> - During the 'make' portion of installation, if you encounter problems - that look similar to this: + ã¤ã³ã¹ãã¼ã«æã«'make'ãè¡ã£ã¦ããéã以ä¸ã®ãããªã¨ã©ã¼ãçºçã + ãã¨ããå ´åã <programlisting> microtime.c: In function `php_if_getrusage': microtime.c:94: storage size of `usg' isn't known @@ -360,18 +378,20 @@ </programlisting> </para> <para> - Your system is broken. You need to fix your /usr/include files either - by making sure your /usr/include/linux symlink is pointing to the - right place in your kernel sources or by installing a glibc-devel - package that matches your glibc. This has absolutely nothing - to do with PHP. To prove this to yourself, try this simple test: + ããªãã®ã·ã¹ãã ã¯å£ãã¦ãã¾ããã·ã³ããªãã¯ãªã³ã¯ + /usr/include/linux ãã·ã¹ãã ã®ã«ã¼ãã«ã½ã¼ã¹ã®å ´æãæ£ããæã + ããã«ãããã使ç¨ãã¦ããglibcã¨åããã¼ã¸ã§ã³ã®glibc-devel ãã + ã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãããã¨ã«ããã/usr/include ãã¡ã¤ã«ãä¿®æ£ + ããå¿ è¦ãããã¾ãããã®åé¡ã¯ãPHPã®åä½ã¨ã¯å ¨ãé¢ä¿ããã¾ããã + ããã示ãã«ã¯ã次ã®ãããªç°¡åãªãã¹ããè¡ã£ã¦ã¿ã¦ä¸ããã <programlisting> $ cat >test.c <<X #include <sys/resource.h> X $ gcc -E test.c >/dev/null </programlisting> - If that spews out errors, you know your include files are messed up. + ããããã¨ã©ã¼ãçºçããå ´åãã¤ã³ã¯ã«ã¼ããã¡ã¤ã«ãè¦ã¤ãããªã + ãã¨ããããã¾ãã </para> </answer> </qandaentry>
Index: phpdoc/ja/faq/build.xml diff -u phpdoc/ja/faq/build.xml:1.2 phpdoc/ja/faq/build.xml:1.3 --- phpdoc/ja/faq/build.xml:1.2 Wed Nov 14 17:55:18 2001 +++ phpdoc/ja/faq/build.xml Sat Nov 17 23:03:39 2001 @@ -118,21 +118,22 @@ </question> <answer> <para> - Take a look at the link line and make sure that all of the appropriate - libraries are being included at the end. Common ones that you might have - missed are '-ldl' and any libraries required for any database support - you included. - </para> - <para> - If you're linking with Apache 1.2.x, did you remember to add the - appropriate information to the EXTRA_LIBS line of the Configuration - file and re-rerun Apache's Configure script? See the - <ulink url="&faqurl.file.installation;">INSTALL</ulink> file that - comes with the distribution for more information. - </para> - <para> - Some people have also reported that they had to add '-ldl' immediately - following '<filename>libphp3.a</filename>' when linking with Apache. + æå¾ã«é©åãªã©ã¤ãã©ãªãå ¨ã¦ã¤ã³ã¯ã«ã¼ãããã¦ãããã©ãã確èªã + ã¦ä¸ãããããããã®ã¯ã'-ldl'ãæå®ãããã¼ã¿ãã¼ã¹ã®ãµãã¼ãæ© + è½ã«å¿ è¦ãªã©ã¤ãã©ãªã®æå®ãæ¬ ãã¦ããã¨ãããã®ã§ãã + </para> + <para> + Apache 1.2.xã¨ãªã³ã¯ããå ´åã«ã¯ãé©å½ãªæ å ±ãConfigurationãã¡ + ã¤ã«ã®EXTRA_LIBSã®è¡ã«è¿½å ããApacheã® Configureã¹ã¯ãªãããå度 + å®è¡ãããã©ããã確èªãã¦ä¸ãããããè©³ç´°ãªæ å ±ã«ã¤ãã¦ã¯ãé å¸ + ãã¡ã¤ã«ã«ä»å±ãããã¡ã¤ã« + <ulink url="&faqurl.file.installation;">INSTALL</ulink>ãåç §ä¸ + ããã + </para> + <para> + ä½åãã®äººããApacheã¨ãªã³ã¯ããéã«' + <filename>libphp3.a</filename>'ã®ç´å¾ã«'-ldl'ã追å ããå¿ è¦ãã + ããã¨ãå ±åããã¦ãã¾ãã </para> </answer> </qandaentry> @@ -145,59 +146,67 @@ </question> <answer> <para> - This is actually quite easy. Follow these steps carefully: + ãã®æé ã¯å®éã«ã¯é常ã«ç°¡åã§ãã以ä¸ã®æé ã«æ³¨ææ·±ãå¾ã£ã¦ä¸ã + ãã <itemizedlist> <listitem> <simpara> - Grab the latest Apache 1.3 distribution from - <ulink url="&faqurl.apache;">&faqurl.apache;</ulink>. + <ulink url="&faqurl.apache;">&faqurl.apache;</ulink>ããææ° + ã®Apache 1.3é å¸ãã¡ã¤ã«ãåå¾ãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Ungzip and untar it somewhere, for example - <filename>/usr/local/src/apache-1.3</filename>. + ãããã©ãããä¾ãã°ã + <filename>/usr/local/src/apache-1.3</filename>ã§ + ungzipãuntarãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Compile PHP by first running - <command>./configure --with-apache=/<path>/apache-1.3</command> - (substitute <path> for the actual path to your apache-1.3 directory. + ã¾ãã + <command>./configure + --with-apache=/<path>/apache-1.3</command>ãå®è¡ããPHP + ãã³ã³ãã¤ã«ãã¦ä¸ããã + (<path> ã®é¨åã¯å®éã®apache-1.3ãã£ã¬ã¯ããªã®ãã¹ã«ç½® + ãæãã¦ä¸ãã) </simpara> </listitem> <listitem> <simpara> - Type '<literal>make</literal>' followed by '<literal>make install</literal>' - to build PHP and copy the necessary files to the Apache distribution tree. + '<literal>make</literal>' ãå®è¡ããå¾ã'<literal>make + install</literal>'ãå®è¡ãã¦ä¸ãããããã«ãããPHPãæ§ç¯ããã + å¿ è¦ãªãã¡ã¤ã«ãApacheã®ã½ã¼ã¹ããªã¼ã«ã³ãã¼ããã¾ãã </simpara> </listitem> <listitem> <simpara> - Change directories into to your <filename>/<path>/apache-1.3/src</filename> - directory and edit the <filename>Configuration</filename> file. - At the end of the file, add: - <literal>AddModule modules/php3/libphp3.a</literal>. + ãã£ã¬ã¯ããªã + <filename>/<path>/apache-1.3/src</filename>ã«ç§»åãã + <filename>Configuration</filename>ãã¡ã¤ã«ãç·¨éãã¦ä¸ããã + ãã®ãã¡ã¤ã«ã®æå¾ã«ä»¥ä¸ã追å ãã¦ä¸ããã: + <literal>AddModule modules/php3/libphp3.a</literal> </simpara> </listitem> <listitem> <simpara> - Type: '<command>./Configure</command>' followed by '<literal>make</literal>'. + '<command>./Configure</command>' ãå®è¡ããå¾ã' + <literal>make</literal>'ãå®è¡ãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - You should now have a PHP-enabled httpd binary! + 以ä¸ã®æé ã«ããPHP対å¿ã®httpdãã¤ããªãæ§ç¯ã§ãã¾ããã </simpara> </listitem> </itemizedlist> </para> <para> - <emphasis>Note:</emphasis> : You can also use the new Apache - <literal>./configure</literal> script. See the instructions in - the <literal>README.configure</literal> file which is part of - your Apache distribution. Also have a look at the <filename>INSTALL</filename> - file in the PHP distribution. + <emphasis>注æ:</emphasis> : Apache ã®æ°ãã + <literal>./configure</literal>ã¹ã¯ãªããã使ç¨ãããã¨ãå¯è½ã§ãã + Apacheé å¸ãã¡ã¤ã«ã®<literal>README.configure</literal>ãã¡ã¤ã« + ã®æç¤ºãåç §ä¸ãããã¾ããPHPé å¸ãã¡ã¤ã«ã® + <filename>INSTALL</filename> ãã¡ã¤ã«ãåç §ä¸ããã </para> </answer> </qandaentry> @@ -207,48 +216,56 @@ <para> ã¤ã³ã¹ãã¼ã«æé ã«å®å ¨ã«åºã¥ãUNIXä¸ã§Apacheã¢ã¸ã¥ã¼ã«çãã¤ã³ã¹ ãã¼ã«ãã¾ãããããã©ã¦ã¶ã§ã¢ã¯ã»ã¹ããã¨PHPã¹ã¯ãªããã表示ã - ãããã¡ã¤ã«ãä¿åãã¾ããã¨ãããã¾ãã + ãããã¡ã¤ã«ãä¿åãã¾ããã¨å°ãããã¾ãã </para> + </question> <answer> <para> - This means that the PHP module is not getting invoked for some reason. - Three things to check before asking for further help: + ããã¯ãä½ããã®çç±ã«ããPHPã¢ã¸ã¥ã¼ã«ãèµ·åãã¦ããªããã¨ãæ + å³ãã¦ãã¾ããå©ããæ±ãã質åãè¡ãåã«ã¾ã以ä¸ã確èªä¸ããã <itemizedlist> <listitem> <simpara> - Make sure that the httpd binary you are running is the actual - new httpd binary you just built. To do this, try running: + å®è¡ãã¦ããhttpdãã¤ããªãæ§ç¯ããã°ããã®æ°ããhttpdãã¤ã + ãªã§ãããã¨ã確èªãã¦ä¸ããã確èªãè¡ãã«ã¯ä»¥ä¸ã®ããã«å ¥å + ãã¾ãã <literal>/path/to/binary/httpd -l</literal> </simpara> <simpara> - If you don't see <filename>mod_php3.c</filename> listed then you are - not running the right binary. Find and install the correct binary. + <filename>mod_php3.c</filename> ã¾ã㯠+ <filename>mod_php4.c</filename> ããªã¹ãã®ä¸ã«ãªãå ´åãæ£ã + ããã¤ããªãå®è¡ããã¦ãã¾ãããæ£ãããã¤ããªãè¦ã¤ãã¦ã㤠+ ã³ã¹ãã¼ã«ãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Make sure you have added the correct Mime Type to one of your - <literal>Apache .conf</literal> files. It should be: - <literal>AddType application/x-httpd-php3 .php3</literal> (for PHP 3) + <literal>Apache .conf</literal> ãã¡ã¤ã«ã®ï¼ã¤ã«æ£ããMIMEå + ã追å ããã¦ãããã¨ã確èªãã¦ä¸ãããããã¯ä»¥ä¸ã®ããã«ãªã + ã¾ãã + <literal>AddType application/x-httpd-php3 .php3</literal> + (PHP 3ã®å ´å) </simpara> <simpara> - or <literal>AddType application/x-httpd-php .php</literal> (for PHP 4) + ã¾ã㯠<literal>AddType application/x-httpd-php + .php</literal> (PHP 4ã®å ´å) </simpara> <simpara> - Also make sure that this AddType line is not hidden away inside a - <Virtualhost> or <Directory> block which would - prevent it from applying to the location of your test script. + ã¾ãããã®AddTypeã®è¡ãã + <Virtualhost> ã¾ã㯠<Directory> ãããã¯ã®ä¸ã«é + ããã¦ããã¹ãç¨ã®ã¹ã¯ãªããã®å ´æã«é©ç¨ã§ãã¦ããªããããªã + ã¨ããªããã¨ã確èªãã¦ä¸ããã </simpara> </listitem> <listitem> <simpara> - Finally, the default location of the Apache configuration files - changed between Apache 1.2 and Apache 1.3. You should check to - make sure that the configuration file you are adding the AddType - line to is actually being read. You can put an obvious syntax error - into your httpd.conf file or some other obvious change that will - tell you if the file is being read correctly. + æå¾ã«ãããã©ã«ãã®Apacheè¨å®ãã¡ã¤ã«ã®å ´æã¯Apache 1.2㨠+ Apache 1.3ã®éã§å¤æ´ããã¦ãã¾ããAddTypeã®è¡ã追å ããè¨å®ãã¡ + ã¤ã«ãå®éã«èªã¿è¾¼ã¾ãã¦ãããã¨ã確èªãã¦ä¸ããããã®ãã¡ã¤ + ã«ãæ£ããèªã¿è¾¼ã¾ãã¦ããå ´åã«ã¯ãæãããªæ§æã¨ã©ã¼ã + httpd.confãã¡ã¤ã«ã®ä¸ã«æ¸ãè¾¼ãã§ãã¾ã£ãããä½ããã®æãã + ãªå¤æ´ããã£ãå¯è½æ§ãããã¾ãã </simpara> </listitem> </itemizedlist> @@ -267,10 +284,10 @@ </question> <answer> <para> - Well, you decided to try to outsmart the people who wrote those nice - step-by-step instructions for you and you have now discovered that - these people cannot be outsmarted. The libphp4.a file is not supposed to - exist. The Apache build process will create it. + ããªãã¯èªåã®ããã«ç´ æ´ããé åºã ã£ãã¤ã³ã¹ãã¼ã«æé ãæ¸ãã人 + ãåºãæããã¨ãããããã§ããªããã¨ã«æ°ä»ããã®ã§ãã + libphp4.a ãã¡ã¤ã«ã¯åå¨ããªããã°ãããªãããã§ã¯ããã¾ããã + ãã®ãã¡ã¤ã«ã¯ãApacheã®æ§ç¯æã«èªåçã«ä½æããã¾ãã </para> </answer> </qandaentry> @@ -300,34 +317,35 @@ </question> <answer> <para> - There are three things to check here. First, for some reason - when Apache builds the apxs Perl script, it sometimes ends up - getting built without the proper compiler and flags variables. - Edit your apxs (sometimes found in /usr/local/apache/bin/apxs - or /usr/sbin/apxs) and check for these lines: + ããã§ã¯ã確èªãã¹ããã¨ã3ç¹ããã¾ããã¾ããä½ããã®çç±ã«ããã + Apacheãapxs Perlã¹ã¯ãªãããæ§ç¯ããéã«é©å½ãªã³ã³ãã¤ã©ããã© + ã°å¤æ°ãä»ããªãã§æ§ç¯ããã¦ãã¾ããã¨ãæã ããã¾ãã + 使ç¨ãã apxs (/usr/local/apache/bin/apxsã¾ãã¯/usr/sbin/apxsç + ã«ããã¾ã)ãç·¨éãã以ä¸ã®è¡ã確èªãã¦ä¸ããã <programlisting> my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl -my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl +my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl </programlisting> - If this is what you see, you have found your problem. Change these lines - to say: + ä¸è¨ã®ããã«ãªã£ã¦ããå ´åã¯ãåé¡ã§ãããããã®è¡ã以ä¸ã®ããã« + 夿´ãã¦ä¸ããã <programlisting> my $CFG_CFLAGS_SHLIB = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = q(-shared);# substituted via Makefile.tmpl </programlisting> - The second possible problem should only be an issue on RedHat-6.1/6.2. - The apxs script RedHat ships is broken. Look for this line: + å¯è½æ§ã®ãã第2ã®åé¡ã¯ãRedHat-6.1/6.2(ã¾ãã¯ãããå ã«ããã㣠+ ã¹ããªãã¥ã¼ã·ã§ã³)ã§ã®ã¿åå¨ããåé¡ã§ããRedHatãåºè·ãã + apxs ã¹ã¯ãªããã¯å£ãã¦ãã¾ãã以ä¸ã®è¡ãè¦ã¦ä¸ããã <programlisting> my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install </programlisting> - If you see the above line, change it to this: + ä¸ã®è¡ãããå ´åããããæ¬¡ã®ããã«å¤æ´ãã¦ä¸ããã <programlisting> my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install </programlisting> - Last, if you reconfigure/reinstall Apache, add a 'make clean' - to the process after './configure' and before 'make'. + æå¾ã«ãApacheã®configure/åã¤ã³ã¹ãã¼ã«ãè¡ãã¾ãããã®éã + './configure' ã¨'make'ã®éã«'make clean'ãè¡ã£ã¦ä¸ããã </para> </answer> </qandaentry> @@ -341,8 +359,8 @@ </question> <answer> <para> - During the 'make' portion of installation, if you encounter problems - that look similar to this: + ã¤ã³ã¹ãã¼ã«æã«'make'ãè¡ã£ã¦ããéã以ä¸ã®ãããªã¨ã©ã¼ãçºçã + ãã¨ããå ´åã <programlisting> microtime.c: In function `php_if_getrusage': microtime.c:94: storage size of `usg' isn't known @@ -360,18 +378,20 @@ </programlisting> </para> <para> - Your system is broken. You need to fix your /usr/include files either - by making sure your /usr/include/linux symlink is pointing to the - right place in your kernel sources or by installing a glibc-devel - package that matches your glibc. This has absolutely nothing - to do with PHP. To prove this to yourself, try this simple test: + ããªãã®ã·ã¹ãã ã¯å£ãã¦ãã¾ããã·ã³ããªãã¯ãªã³ã¯ + /usr/include/linux ãã·ã¹ãã ã®ã«ã¼ãã«ã½ã¼ã¹ã®å ´æãæ£ããæã + ããã«ãããã使ç¨ãã¦ããglibcã¨åããã¼ã¸ã§ã³ã®glibc-devel ãã + ã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãããã¨ã«ããã/usr/include ãã¡ã¤ã«ãä¿®æ£ + ããå¿ è¦ãããã¾ãããã®åé¡ã¯ãPHPã®åä½ã¨ã¯å ¨ãé¢ä¿ããã¾ããã + ããã示ãã«ã¯ã次ã®ãããªç°¡åãªãã¹ããè¡ã£ã¦ã¿ã¦ä¸ããã <programlisting> $ cat >test.c <<X #include <sys/resource.h> X $ gcc -E test.c >/dev/null </programlisting> - If that spews out errors, you know your include files are messed up. + ããããã¨ã©ã¼ãçºçããå ´åãã¤ã³ã¯ã«ã¼ããã¡ã¤ã«ãè¦ã¤ãããªã + ãã¨ããããã¾ãã </para> </answer> </qandaentry>