{"id":8,"date":"2005-10-06T14:20:43","date_gmt":"2005-10-06T12:20:43","guid":{"rendered":"http:\/\/www.sprawl.it\/ian\/?p=8"},"modified":"2006-07-21T15:02:09","modified_gmt":"2006-07-21T13:02:09","slug":"php-43x-on-cobalt-raq-550","status":"publish","type":"post","link":"https:\/\/www.sprawl.it\/blog\/2005\/10\/06\/php-43x-on-cobalt-raq-550\/","title":{"rendered":"PHP 4.3.x on Cobalt RaQ 550"},"content":{"rendered":"<p>This steps are based on <a href=\"http:\/\/the.taoofmac.com\/space\/HOWTO\/Install%20PHP%204.3.x%20on%20a%20RAQ550\">Tao of Mac<\/a>, i&#8217;ll do my english version soon (at least i&#8217;d like to do).<\/p>\n<p>Questo articolo \u00c3\u00a8 qui principalmetne per ricoradare a me stesso come fare un altro upgrade nel caso ne avessi bisogno.<\/p>\n<p><strong>Salvare la vecchia versione e isolare il php per l&#8217;AdminServer<\/strong><br \/>\nCopiare \/usr\/lib\/apache in \/usr\/lib\/apache.admserv e  farne anche una copia in \/usr\/lib\/apache.orig (nel caso le cose andassero male):<br \/>\n<code># cd \/usr\/lib<br \/>\n# cp -R apache apache.admserv<br \/>\n# cp -R apache apache.orig<br \/>\n<\/code><br \/>\nConfigurare apache dell&#8217;administration server in modo che usi la directoty appena salvata:<br \/>\n<code># vim \/etc\/admserv\/conf\/httpd.conf<\/code> e cambiare la riga<br \/>\n<code>LoadModule php4_module         modules\/libphp4.so<\/code> in<br \/>\n<code>LoadModule php4_module         \/usr\/lib\/apache.admserv\/libphp4.so<\/code><br \/>\ne il relativo php.ini:<br \/>\n<code>#vim \/etc\/admserv\/php.ini<\/code> cambiando la riga<br \/>\n<code>extension_dir  =       \/usr\/lib\/apache\/php   <\/code> in<br \/>\n<code>extension_dir   =       \/usr\/lib\/apache.admserv\/php<\/code><br \/>\nFar ripartire apache e verificare che la consolle dei amministrazione funzioni correttamente:<br \/>\n<code># \/etc\/rc.d\/init.d\/admserv restart<\/code><\/p>\n<p><strong>Compilazione ed installazione del nuovo php<\/strong><br \/>\nPer prima cosa serve procurarsi i <a href=\"http:\/\/www.php.net\">sorgenti del php<br \/>\n<\/a> delle <a href=\"http:\/\/www.libpng.org\/pub\/png\/libpng.html\">librerie png<\/a> (libpng-1.2.8.tar.gz)  e delle <a href=\"http:\/\/ijg.org\/files\/\">librerie jpeg<\/a> (jpegsrc.v6b.tar.gz).<br \/>\nSpostare i 3 file appena scaricati un \/usr\/src e decomprimerli<br \/>\n<code><br \/>\n# tar zxvf jpegsrc.v6b.tar.gz<br \/>\n# tar zxvf libpng-1.2.8.tar.gz<br \/>\n# tar zxvf php-4.3.11.tar.gz<br \/>\n<\/code><br \/>\nCompilare per prima cosa le librerie grafiche<br \/>\n<code><br \/>\n# cd libpng-1.2.5\/<br \/>\n# cp scripts\/makefile.linux Makefile<br \/>\n# make install<br \/>\n# cd ..\/jpeg-6b\/<br \/>\n# .\/configure --enable-shared --enable-static --prefix=\/usr && make && make install<br \/>\n# make install-lib<br \/>\n# make install-headers<br \/>\n<\/code> Le librerie jpeg, se non configurate come qui riportato, non saranno disponibili al php<br \/>\n(provare con un semplice .\/configure &#038;&#038; make &#038;&#038; make install e verificare con phpinfo)<\/p>\n<p>Configurare e compilare il php:<br \/>\n<code><br \/>\n# cd ..\/php-4.3.11<br \/>\n# .\/configure --prefix=\/usr --with-apxs=\/usr\/sbin\/apxs --enable-safe-mode --with-config-file-path=\/etc\/httpd\/ --with-exec-dir=\/usr\/bin --with-zlib --enable-magic-quotes --with-regex=system --with-pear --enable-calendar --with-gd --with-iconv --disable-debug --with-gettext --with-ttf=\/usr\/lib\/libttf.so --enable-mbstring --with-interbase=shared --with-mysql=shared --with-pgsql=shared --with-jpeg-dir=\/usr\/local\/lib --with-png-dir=\/usr\/local\/lib --enable-memory-limit<br \/>\n#  make && make install<br \/>\n# cp modules\/* \/usr\/lib\/apache\/php\/<br \/>\n# \/etc\/init.d\/httpd restart<br \/>\n<\/code><br \/>\nSe nascono dei problemi controllare le configurazioni di Apache e di Php.<br \/>\nInfatti molto probabilmete sar\u00c3\u00a0 necessario in<\/p>\n<pre>\/etc\/httpd\/conf\/httpd.conf<\/pre>\n<p>sostituire<br \/>\n<code>LoadModule php4_module modules\/libphp4.2.3.so<\/code> in<br \/>\n<code>LoadModule php4_module modules\/libphp4.so<\/code><\/p>\n<p>Il php.ini originale si trova in \/etc\/httpd\/4.2.3 mentre \u00c3\u00a8 stato specificato in fase di configurazione che il nuovo php.ini sar\u00c3\u00a0 in \/etc\/http, si pu\u00c3\u00b2 copiare il file originale e cambiare ci\u00c3\u00b2 che \u00c3\u00a8 necessario:<br \/>\n<code># vim \/etc\/httpd\/php.ini<br \/>\nextension_dir  =       \/usr\/lib\/apache\/php\/4.2.3 <\/code> diventa<br \/>\n<code>extension_dir   =       \/usr\/lib\/apache\/php<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This steps are based on Tao of Mac, i&#8217;ll do my english version soon (at least i&#8217;d like to do). Questo articolo \u00c3\u00a8 qui principalmetne per ricoradare a me stesso come fare un altro upgrade nel caso ne avessi bisogno. Salvare la vecchia versione e isolare il php per l&#8217;AdminServer Copiare \/usr\/lib\/apache in \/usr\/lib\/apache.admserv e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-it"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7cMxL-8","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":0,"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sprawl.it\/blog\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}