{"id":425,"date":"2003-06-29T00:00:00","date_gmt":"2003-06-28T15:00:00","guid":{"rendered":"http:\/\/localhost\/blog\/?p=413"},"modified":"2014-08-14T15:15:38","modified_gmt":"2014-08-14T06:15:38","slug":"php%e5%95%8f%e9%a1%8c%e8%a7%a3%e6%b1%ba","status":"publish","type":"post","link":"https:\/\/denasu.com\/blog\/2003\/06\/diary425","title":{"rendered":"PHP\u554f\u984c\u89e3\u6c7a"},"content":{"rendered":"<p>\u4ee5\u524d\u4f5c\u3063\u305f Windows + PHP + mySQL \u306e\u30b7\u30b9\u30c6\u30e0\u304c Linux \u4e0a\u3067\u52d5\u304b\u306a\u3044\u554f\u984c\u3002\u7d50\u5c40 PHP \u306e\u30bd\u30fc\u30b9\u3092 EUC \u306b\u3057\u3066\uff0cMySQL\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3082 EUC \u306b\u3057\u305f\u3068\u3053\u308d\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u3042\u3068\u306f\u672c\u756a\u74b0\u5883\u3067\u52d5\u304f\u304b\uff0c\u306a\u306e\u3060\u304c\uff0c\u305d\u3053\u306f YN \u6c0f\u306b\u304a\u9858\u3044\u3059\u308b\u3068\u3057\u3066\uff0c\u3053\u3053\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2\u3060\u3051\u6b8b\u3057\u3066\u304a\u304f\u3002<\/p>\n<hr \/>\n<p>PHP + MySQL \u74b0\u5883\u3092 RedHat Linux \u306b\u4f5c\u6210\u3002PHP \u306f\u65e2\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067 MySQL \u3060\u3051\u5165\u308c\u308c\u3070\u3044\u3044\u304b\u3068\u601d\u3063\u305f\u3089 php-mysql \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5408\u308f\u305a\u306b\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067 apache\uff0cPHP\uff0cMySQL\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>apache\uff08httpd-2.0.46.tar.gz\uff09\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"brush:shell\">\r\n\/\/ make\r\n.\/configure --enable-shared=max --enable-module=most\r\nmake\r\nmake install\r\n\r\n\/\/ httpd.conf\r\nDirectoryIndex \u306b index.php \u3092\u8ffd\u52a0\r\n\r\nAddType application\/x-httpd-php .php\r\nAddType application\/x-httpd-php-source .phps\r\n\r\n\/\/ \u8d77\u52d5\r\n\/usr\/local\/apache2\/bin\/apachectl start\r\n<\/pre>\n<p>mysql\uff08mysql-4.0.13.tar.gz\uff09\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"brush:shell\">\r\n\/\/ make\r\n.\/configure --with-charset=ujis --with-extra-charsets=all --with-mysqld-user=mysql --prefix=\/usr\/local\/mysql\r\nmake\r\nmake install\r\n\r\n\/\/ \u8a2d\u5b9a\r\nscripts\/mysql_install_db\r\nchown -R root  \/usr\/local\/mysql\r\nchown -R mysql \/usr\/local\/mysql\/var\r\nchgrp -R mysql \/usr\/local\/mysql\r\ncp support-files\/my-medium.cnf \/etc\/my.cnf\r\n\r\n\/\/ \u8d77\u52d5\r\n\/usr\/local\/mysql\/bin\/safe_mysqld --user=mysql &\r\n\r\n\/\/ \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210\r\nmysqladmin -u root password \uff08\u30d1\u30b9\u30ef\u30fc\u30c9\uff09\r\nmysqladmin -u root -p create \uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\uff09\r\nmysql -u root -p mysql\r\ngrant all privileges on \uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\uff09.* to \uff08\u30e6\u30fc\u30b6\u540d\uff09@localhost identified by '\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\uff09';\r\nmysql -u \uff08\u30e6\u30fc\u30b6\u540d\uff09 -p \uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\uff09\r\n<\/pre>\n<p>php\uff08php-4.3.2.tar.gz\uff09\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"brush:shell\">\r\n\/\/ make\r\n.\/configure --with-apxs2=\/usr\/local\/apache2\/bin\/apxs --with-mysql\r\n<\/pre>\n<hr \/>\n<pre class=\"brush:shell\">\r\nInnoDB: Error: log file .ib_logfile1 is of different size 0 0 bytes\r\nInnoDB: than specified in the .cnf file 0 5242880 bytes!\r\n<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3002\u3053\u308c\u306f\u4f55\u5ea6\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u6574\u5408\u6027\u304c\u5931\u308f\u308c\u305f\u305b\u3044\u3067\uff0c<\/p>\n<pre class=\"brush:shell\">\r\nib_logfile\r\nibdata\r\n<\/pre>\n<p>\u3092\u524a\u9664\u3057\u3066\u76f4\u3063\u305f\u3002<\/p>\n<hr \/>\n<p>PHP\u304b\u3089MySQL\u63a5\u7d9a\u6642\u306b<\/p>\n<pre class=\"brush:shell\">\r\n\/var\/lib\/mysql\/mysql.sock\r\n<\/pre>\n<p>\u306b\u63a5\u7d9a\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3002\u3053\u308c\u306f MySQL \u306e\u8a2d\u5b9a\u3068 PHP \u306e\u8a2d\u5b9a\u304c\u5408\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u3002\u4eca\u56de\u306f PHP \u5074\u306e\u8a2d\u5b9a\u3092\u76f4\u3057\u3066\uff0cDB\u63a5\u7d9a\u6642\u306e\u30b5\u30fc\u30d0\u3092<\/p>\n<pre class=\"brush:shell\">\r\nlocalhost\r\n\u304b\u3089\r\nlocalhost:\/tmp\/mysql.sock\r\n<\/pre>\n<p>\u306b\u3057\u305f\u3002<\/p>\n<hr \/>\n<p>php \u30b3\u30de\u30f3\u30c9\u3067\u76f4\u63a5 .php \u3092\u8d77\u52d5\u3059\u308b\u3068<\/p>\n<pre class=\"brush:shell\">\r\nFile 'NONEXISTENT\/charsets\/?.conf' not found (Errcode: 2)\r\nCharacter set '#12' is not a compiled character set and is not specified in the 'NONEXISTENT\/charsets\/Index' file\r\n<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304f\u308b\u306e\u3060\u304c\uff0c\u4eca\u306e\u3068\u3053\u308d\u5b9f\u884c\u306b\u306f\u5f71\u97ff\u3057\u3066\u3044\u306a\u3044\u6a21\u69d8\u3002ujis.conf\u3000\u304c\u306a\u3044\uff0c\u3068\u3044\u3046\u610f\u5473\u306e\u3088\u3046\u3060\u304c\uff0c\u672a\u89e3\u6c7a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u4f5c\u3063\u305f Windows + PHP + mySQL \u306e\u30b7\u30b9\u30c6\u30e0\u304c Linux \u4e0a\u3067\u52d5\u304b\u306a\u3044\u554f\u984c\u3002\u7d50\u5c40 PHP \u306e\u30bd\u30fc\u30b9\u3092 EUC \u306b\u3057\u3066\uff0cMySQL\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3082 EUC \u306b\u3057\u305f\u3068\u3053\u308d\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u3042\u3068\u306f\u672c\u756a\u74b0\u5883\u3067\u52d5\u304f\u304b\uff0c\u306a\u306e\u3060\u304c\uff0c\u305d\u3053\u306f YN \u6c0f\u306b\u304a\u9858\u3044\u3059\u308b\u3068\u3057\u3066\uff0c\u3053\u3053\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2\u3060\u3051\u6b8b\u3057\u3066\u304a\u304f\u3002 PHP + MySQL \u74b0\u5883\u3092 RedHat Linux \u306b\u4f5c\u6210\u3002PHP \u306f\u65e2\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067 MySQL \u3060\u3051\u5165\u308c\u308c\u3070\u3044\u3044\u304b\u3068\u601d\u3063\u305f\u3089 php-mysql \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5408\u308f\u305a\u306b\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067 apache\uff0cPHP\uff0cMySQL\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 apache\uff08httpd-2.0.46.tar.gz\uff09\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \/\/ make .\/configure &#8211;enable-shared=max &#8211;enable-module=most make make install \/\/ httpd.conf DirectoryIndex \u306b index.php \u3092\u8ffd\u52a0 AddType application\/x-httpd-php .php AddType application\/x-httpd-php-source .phps \/\/ \u8d77\u52d5 \/usr\/local\/apache2\/bin\/apachectl start [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[24],"class_list":["post-425","post","type-post","status-publish","format-standard","hentry","category-programming","tag-webapp"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ZThs-6R","_links":{"self":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/comments?post=425"}],"version-history":[{"count":3,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/425\/revisions"}],"predecessor-version":[{"id":2485,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/425\/revisions\/2485"}],"wp:attachment":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/media?parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/categories?post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/tags?post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}