{"id":284,"date":"2016-01-06T13:01:17","date_gmt":"2016-01-06T04:01:17","guid":{"rendered":"https:\/\/lonelyse.campus-web.net\/?p=284"},"modified":"2016-01-06T13:01:17","modified_gmt":"2016-01-06T04:01:17","slug":"libreoffice%e3%82%92php%ef%bc%88apatche%e7%b5%8c%e7%94%b1%e3%81%a7pdf%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e3%81%a8%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ae%e5%af%be%e5%87%a6%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/lonelyse.campus-web.net\/?p=284","title":{"rendered":"LIBREOFFICE\u3092PHP\uff08Apatche)\u7d4c\u7531\u3067PDF\u306b\u5909\u63db\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<p><script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-9057618403394079\";\r\n\/* \u57fa\u672c\u5e83\u544a *\/\r\ngoogle_ad_slot = \"6529398585\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script><\/p>\n<p>\n\t<strong>\u30a8\u30e9\u30fc\u5185\u5bb9<\/strong>\n<\/p>\n<h1>\n\t<span style=\"color: rgb(0, 0, 0); font-family: 'MS PGothic'; font-size: medium;\">#[Java framework] Error in function createSettingsDocument (elements.cxx). javaldx failed! Warning: failed to read path from javaldx<\/span><br \/>\n<\/h1>\n<p>\n\t\u73fe\u8c61<br \/>\n\tlibreoffice\u3067PDF\u5909\u63db\u304c\u3067\u304d\u306a\u3044\u3002\u305d\u306e\u4ed6\u306e\u5909\u63db\u3082\u542b\u3080\u3002\n<\/p>\n<p>\n\t<strong>\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u5bb9<\/strong>\n<\/p>\n<div>\n\t&lt;?php\n<\/div>\n<div>\n\t$command = &#39;\/usr\/bin\/libreoffice &#8211;headless &#8211;nologo &#8211;nofirststartwizard &nbsp;&#8211;convert-to pdf test.xls &#8211;outdir .\/ 2&gt;&amp;1&#39;;\n<\/div>\n<div>\n\texec ($command);\n<\/div>\n<div>\n\t$output = shell_exec(&quot;{$command} &nbsp;2&gt;&amp;1&quot;);\n<\/div>\n<div>\n\tprint_r ($output);\n<\/div>\n<div>\n\t?&gt;\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001LibreOffice\u3092\u4f7f\u3063\u3066\u3001PHP\u3067Excel\u30c7\u30fc\u30bf\u3092PDF\u306b\u5909\u63db\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002exec\u3067\u76f4\u63a5LibreOffice\u306e\u30b3\u30de\u30f3\u30c9\u3092\u305f\u305f\u304f\u308f\u3051\u3067\u3059\u304c\u3001\n<\/div>\n<div>\n\t\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u307e\u3044\u307e\u3059\u3002\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u30a8\u30e9\u30fc\u3092\u305d\u306e\u307e\u307e\u898b\u3066\u3044\u308b\u3068<strong><span style=\"background-color:#ffff00;\">\u300cjavaldx\u300d\u306e\u30d1\u30b9\u304c\u8aad\u3081\u306a\u3044\uff08\u901a\u3089\u306a\u3044\uff09\u3068\u898b\u3048\u304c\u3061\u3067\u3059\u304c\u3001\u304a\u306a\u3058\u30b3\u30de\u30f3\u30c9\u3092SSH\u3067\u76f4\u63a5\u53e9\u304f\u3068\u3046\u307e\u304f\u3044\u304d\u307e\u3059\u3002\uff08\u30d1\u30b9\u304c\u901a\u308b\uff09<\/span><\/strong>\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\tLibreOffie\u306e\u5909\u63db\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304f&rarr;OK\n<\/div>\n<div>\n\tPHP\u3067Apatche\u7d4c\u7531\u3067\u53e9\u304f&rarr;NG\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u3053\u308c\u306fLibreOffice\u306b\u304b\u304e\u3089\u305a\u3067\u3059\u304c\u3001\u3053\u306e\u624b\u306e\u3082\u306e\u306f\u30a2\u30af\u30bb\u30b9\u4ef6\u306b\u3088\u308b\u3082\u306e\u304c\u591a\u3044\u3067\u3059\u3002\u4eca\u56de\u30c0\u30e1\u306a\u30d1\u30bf\u30fc\u30f3\u306fApatche\u7d4c\u7531\u3067\u53e9\u304f\u306e\u3067Apatche\u306e\u30d7\u30ed\u30bb\u30b9\u4e0a\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d70\u3089\u305b\u308b\u3068\u30a2\u30af\u30bb\u30b9\u4ef6\u306e\u95a2\u4fc2\u3067LibreOffie\u304c\u3046\u307e\u304f\u4f7f\u3048\u307e\u305b\u3093\u3002\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u305d\u306e\u5834\u5408\u3001\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u307fSUDO\uff08\u7ba1\u7406\u8005\uff09\u6a29\u9650\u3067\u52d5\u304b\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t<strong>\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u5bb9\u6539\u8a02<\/strong>\n<\/div>\n<div>\n\t&lt;?php\n<\/div>\n<div>\n\t$command = &#39;<strong>sudo<\/strong> \/usr\/bin\/libreoffice &#8211;headless &#8211;nologo &#8211;nofirststartwizard &nbsp;&#8211;convert-to pdf test.xls &#8211;outdir .\/ 2&gt;&amp;1&#39;;\n<\/div>\n<div>\n\texec ($command);\n<\/div>\n<div>\n\t$output = shell_exec(&quot;{$command} &nbsp;2&gt;&amp;1&quot;);\n<\/div>\n<div>\n\tprint_r ($output);\n<\/div>\n<div>\n\t?&gt;\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u3053\u306e\u3088\u3046\u306b\u7ba1\u7406\u8005\u6a29\u9650\u3067\u52d5\u304b\u3059\u3068\u7121\u6575\u3067\u3059\u304c\u3001\u3082\u3061\u308d\u3093Linux\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u306e\u58c1\u306b\u3076\u3061\u5f53\u305f\u308a\u307e\u3059\u3002\n<\/div>\n<div>\n\t\u305d\u308a\u3083\uff5e\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u306e\u306b\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3067\u52d5\u304b\u305d\u3046\u3068\u3057\u305f\u3089\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u3066\u52d5\u304d\u307e\u305b\u3093\u3002\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u3067\u3059\u306e\u3067\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092SUDO\u3067\u52d5\u304b\u305b\u308b\u3046\u306b\u30b5\u30fc\u30d0\u30fc\u3092\u8abf\u7bc0\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002\n<\/div>\n<div>\n\t<a href=\"http:\/\/www.maruko2.com\/mw\/%E4%B8%80%E8%88%AC%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%82%92_sudo_%E3%81%A7%E3%81%8D%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%99%E3%82%8B\">\u53c2\u8003URL<\/a>\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\tvisudo\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304d\u3001\u8a18\u8ff0\u3092\u3057\u307e\u3059\u3002\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u25bc\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\n<\/div>\n<div>\n\t#Defaults &nbsp; &nbsp;requiretty\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t\u25bc\u8ffd\u8a18\n<\/div>\n<div>\n<div>\n\t\tDefaults visiblepw\n\t<\/div>\n<div>\n\t\tapache ALL=(FTP\u30e6\u30fc\u30b6\u30fc\u540d) NOPASSWD: \/usr\/bin\/libreoffice\n\t<\/div>\n<div>\n\t\t&nbsp;\n\t<\/div>\n<div>\n\t\t\u5168\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u306blibreoffice\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7acb\u305f\u3051\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\n\t<\/div>\n<div>\n\t\tapache ALL=(all) NOPASSWD: \/usr\/bin\/libreoffice\n\t<\/div>\n<div>\n\t\t\u3068\u3057\u307e\u3059\u3002\n\t<\/div>\n<div>\n\t\t&nbsp;\n\t<\/div>\n<div>\n\t\t<span style=\"color:#ff0000;\">\u3010\u6ce8\u610f\uff01\u3011<\/span>\n\t<\/div>\n<div>\n\t\t<span style=\"color:#ff0000;\">\u300cDefaults &nbsp; &nbsp;requiretty\u300d\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3060\u3051\u3067\u306f\u3001\u5927\u304d\u306a\u8106\u5f31\u6027\u3092\u62db\u304f\u306e\u3067<\/span>\n\t<\/div>\n<\/div>\n<div>\n\t<span style=\"color:#ff0000;\">\u304b\u306a\u3089\u305a\u3001\u8ffd\u8a18\u3092\u3057\u3066SUDO\u3092\u4f7f\u3048\u308b\u30e6\u30fc\u30b6\u30fc\u3068\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span>\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t<span style=\"color:#ff0000;\">\/etc\/sudoers\u3092\u76f4\u63a5\u7de8\u96c6\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002\u304b\u306a\u3089\u305avisudo\u3092\u4f7f\u3044\u307e\u3059\u3002\u524d\u8005\u306f\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3082\u3001\u53cd\u5fdc\u3057\u307e\u305b\u3093\u304c\u3001\u5f8c\u8005\u306f\u30a8\u30e9\u30fc\u304c\u6709\u308a\u307e\u3057\u305f\u3089\u5fdc\u7b54\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/span>\n<\/div>\n<div>\n\t&nbsp;\n<\/div>\n<div>\n\t<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-9057618403394079\";\r\n\/* \u57fa\u672c\u5e83\u544a *\/\r\ngoogle_ad_slot = \"6529398585\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30a8\u30e9\u30fc\u5185\u5bb9 #[Java framework] Error in function createSe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-apache"],"views":10263,"_links":{"self":[{"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=284"}],"version-history":[{"count":1,"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions\/285"}],"wp:attachment":[{"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lonelyse.campus-web.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}