<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>studiosacchetti.com &#187; php</title>
	<atom:link href="http://www.studiosacchetti.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.studiosacchetti.com</link>
	<description>Soluzioni informatiche per piccole e medie aziende</description>
	<lastBuildDate>Fri, 13 Jan 2012 14:14:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>To upgrade to PHP &amp; Mysql on plesk 10</title>
		<link>http://www.studiosacchetti.com/2011/to-upgrade-to-php-mysql-on-plesk-10/</link>
		<comments>http://www.studiosacchetti.com/2011/to-upgrade-to-php-mysql-on-plesk-10/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 12:05:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tecnici]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plesk 10]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.studiosacchetti.com/?p=520</guid>
		<description><![CDATA[To Upgrade to Mysql 5.1 on plesk 10 Steps 3 and 4 only apply if you are upgrading from MySQL 5.0.x Step 1) Set up the atomic channel: wget -q -O - http://www.atomicorp.com/installers/atomic &#124; sh Step 2) Upgrade to Mysql 5.1 yum upgrade mysql Step 3) MySQL 5.1 removed the BERKLEY storage engine. Since it [...]]]></description>
			<content:encoded><![CDATA[<p>To Upgrade to Mysql 5.1 on plesk 10</p>
<p>Steps 3 and 4 only apply if you are upgrading from MySQL 5.0.x</p>
<p>Step 1) Set up the atomic channel:<br />
<code>wget -q -O - <a rel="nofollow" href="http://www.atomicorp.com/installers/atomic">http://www.atomicorp.com/installers/atomic</a> | sh</code></p>
<p>Step 2) Upgrade to Mysql 5.1<br />
<code>yum upgrade mysql</code></p>
<p>Step 3) MySQL 5.1 removed the BERKLEY storage engine. Since it was  not commonly used, to save resources it was recommended this be turned  off. You <strong>must</strong> comment the following out or remove it from /etc/my.cnf or MySQL 5.1 <strong>will not start!</strong><br />
<code>skip-bdb</code></p>
<p>Step 4) Update your MySQL tables<br />
<code>mysql_upgrade -u admin -p</code></p>
<p>Step 5) Restart mysql<br />
<code>/etc/init.d/mysqld restart </code></p>
<p>To upgrade to PHP 5.3.x on plesk 10:</p>
<p>Plesk doesn’t ship client’s PHP, it only downloads it from original OS  vendor repo and it is quite likely it may be outdated there (especially  for older OS). If your OS comes with PHP 5.3, then Plesk would run PHP  5.3 for clients. When you upgrade mysql  php has to be updated automatically, but in case..</p>
<p>Step 1) Set up the atomic channel:<br />
<code>wget -q -O - <a rel="nofollow" href="http://www.atomicorp.com/installers/atomic.sh">http://www.atomicorp.com/installers/atomic.sh</a> | sh</code></p>
<p>Step 2) Upgrade to PHP 5.3.x:<br />
<code>yum upgrade</code></p>
<p>Step 3) Replace the PHP 4 php.ini with PHP 5.3.x&#8217;s (if applicable):<br />
<code>mv /etc/php.ini.rpmnew /etc/php.ini</code></p>
<p>Step 4) Replace the php.conf with the PHP 5.3.x php.conf (if applicable):<br />
<code>mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf</code></p>
<p>Step 5) Restart the webserver<br />
<code>service httpd restart</code><br />
(or)<br />
<code>/etc/init.d/httpd restart</code></p>
<p>Checklist</p>
<ol>
<li>Source code installations of extensions, like Ioncube loader, or other extensions that have to be updated.</li>
<li>php.ini settings, like memory_limit</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.studiosacchetti.com/2011/to-upgrade-to-php-mysql-on-plesk-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building an rpm to install script filesBuilding an rpm to install script files</title>
		<link>http://www.studiosacchetti.com/2010/building-an-rpm-to-install-script-filesbuilding-an-rpm-to-install-script-files/</link>
		<comments>http://www.studiosacchetti.com/2010/building-an-rpm-to-install-script-filesbuilding-an-rpm-to-install-script-files/#comments</comments>
		<pubDate>Mon, 31 May 2010 18:56:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tecnici]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.studiosacchetti.com/?p=357</guid>
		<description><![CDATA[On an rpm based system, say CentOS, first make sure that the rpm-build package is installed. In your user account, not as root (bad form and all) make the following directories: mkdir -p ~/rpm mkdir -p ~/rpm/BUILD mkdir -p ~/rpm/RPMS mkdir -p ~/rpm/SOURCES mkdir -p ~/rpm/SPECS mkdir -p ~/rpm/SRPMS mkdir -p ~/rpm/tmp And create an [...]]]></description>
			<content:encoded><![CDATA[<p>On an rpm based system, say CentOS, first make sure that the  rpm-build package is installed.</p>
<p>In your user account, not as root (bad form and all) make the  following directories:</p>
<p><code><span id="more-357"></span><br />
mkdir -p ~/rpm<br />
mkdir -p ~/rpm/BUILD<br />
mkdir -p ~/rpm/RPMS<br />
mkdir -p ~/rpm/SOURCES<br />
mkdir -p ~/rpm/SPECS<br />
mkdir -p ~/rpm/SRPMS<br />
mkdir -p ~/rpm/tmp<br />
</code></p>
<p>And create an ~/.rpmmacros file with the following in it:</p>
<p><code><br />
%packager       Your Name<br />
%_topdir        /home/YOUR HOME DIR/rpm<br />
%_tmppath       /home/YOUR HOME DIR/rpm/tmp<br />
</code></p>
<p>And now comes the fun part.  Go to the ~/rpm/SOURCES directory and  create a working package directory under that with the package name and a  dash and the major revision number.  For example, ~/rpm/SOURCES/linc-1.   Now in that directory you will copy all the scripts/files that you  wish to have in your package.  For example, I might have a script in  that directory called myscript.sh that I want to be installed as part of  the linc package.</p>
<p>Once that is done, make a tarball of that directory in the  ~/rpm/SOURCES directory named programname-revision.tar.gz.  Using my  previous example it would be:<br />
<code><br />
tar czvf linc-1.tar.gz linc-1/<br />
</code></p>
<p>Now for the glue that makes this all stick together.  Go to your  ~/rpm/SPECS directory and create a spec file for your package.  We’ll  call mine linc.spec and it’ll look like this:</p>
<p><code><br />
Summary: My first rpm script package<br />
Name: linc<br />
Version: 1<br />
Release: 1<br />
Source0: linc-1.tar.gz<br />
License: GPL<br />
Group: MyJunk<br />
BuildArch: noarch<br />
BuildRoot: %{_tmppath}/%{name}-buildroot<br />
%description<br />
Make some relevant package description here<br />
%prep<br />
%setup -q<br />
%build<br />
%install<br />
install -m 0755 -d $RPM_BUILD_ROOT/opt/linc<br />
install -m 0755 myscript.sh $RPM_BUILD_ROOT/opt/linc/myscript.sh<br />
%clean<br />
rm -rf $RPM_BUILD_ROOT<br />
%post<br />
echo " "<br />
echo "This will display after rpm installs the package!"<br />
%files<br />
%dir /opt/linc<br />
/opt/linc/myscript.sh<br />
</code></p>
<p>A lot of that file is pretty self explanatory except then install  lines and the lines after %file.  The install lines tell rpm what to  install where and with what permissions.  You also have to do any  directory creation there as well (the one with the -d in the line).  The  things after %file are similar in that this tells rpm’s database which  files are attached to this package.  The %dir signifies a new directory,  otherwise the files are listed with their complete paths.</p>
<p>Now that you have all that together.  The last thing you need do is  create the package.  Just  go to ~/rpm and do an “rpmbuild -ba  SPECS/linc.spec”.  You will end up with an  ~/rpm/RPMS/noarch/linc-1-1.noarch.rpm if all goes well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studiosacchetti.com/2010/building-an-rpm-to-install-script-filesbuilding-an-rpm-to-install-script-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>joomla e i cms</title>
		<link>http://www.studiosacchetti.com/2009/joomla-e-i-cms/</link>
		<comments>http://www.studiosacchetti.com/2009/joomla-e-i-cms/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 22:19:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informazione]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[jooma!]]></category>
		<category><![CDATA[Mambo]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Nuke]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XOOPS]]></category>

		<guid isPermaLink="false">http://www.studiosacchetti.com/?p=52</guid>
		<description><![CDATA[Un Content management system (CMS), letteralmente &#8220;Sistema di gestione dei contenuti&#8221;, è uno strumento software installato su un server web studiato per facilitare la gestione dei contenuti di siti web, svincolando l&#8217;utilizzatore da conoscenze tecniche di programmazione. Esistono CMS specializzati, cioè appositamente progettati per un tipo preciso di contenuti (un&#8217;enciclopedia on-line, un blog, un forum, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignleft size-full wp-image-86" title="joomla_mini" src="http://www.studiosacchetti.com/wp-content/uploads/2009/02/joomla_mini.gif" alt="joomla_mini" width="100" height="94" />Un <strong>Content management system</strong> (<strong>CMS</strong>), letteralmente &#8220;Sistema di gestione dei contenuti&#8221;, è uno strumento software installato su un server web studiato per facilitare la gestione dei contenuti di <span class="mw-redirect">siti web</span>, svincolando l&#8217;utilizzatore da conoscenze tecniche di programmazione.</p>
<p style="text-align: justify;">Esistono <strong>CMS specializzati</strong>, cioè appositamente progettati per un tipo preciso di contenuti (un&#8217;enciclopedia on-line, un blog, un forum, ecc.) e <strong>CMS generici</strong>, che tendono ad essere più flessibili per consentire la pubblicazione di diversi tipi di contenuti.</p>
<p style="text-align: justify;"><span id="more-52"></span>Tecnicamente un CMS è un&#8217;applicazione lato server, divisa in due parti: la sezione di amministrazione (<em><span class="mw-redirect">back end</span></em>), che serve ad organizzare e supervisionare la produzione dei contenuti, e la sezione applicativa (<em><span class="mw-redirect">front end</span></em>), che l&#8217;utente web usa per fruire dei contenuti e delle applicazioni del sito.</p>
<p style="text-align: justify;">I CMS possono essere programmati in vari linguaggi tra cui più comunemente in PHP e ASP; il tipo di linguaggio adoperato è indifferente a livello di funzionalità. I CMS in PHP sono multipiattaforma, mentre i CMS in ASP possono essere utilizzati solo su piattaforme <span class="mw-redirect">Windows</span>.</p>
<p style="text-align: justify;">Ecco una lista <em>(in ordine alfabetico)</em> dei CMS open source più utilizzati:</p>
<ul style="text-align: justify;">
<li><span class="new">Alfresco</span> <a class="external autonumber" title="http://www.alfresco.com/" rel="nofollow" href="http://www.alfresco.com/">[1]</a></li>
<li><span class="new">Docebo CMS</span> <a class="external autonumber" title="http://www.docebocms.org" rel="nofollow" href="http://www.docebocms.org/">[9]</a></li>
<li>Drupal</li>
<li><span class="new">eZ publish</span> <a class="external autonumber" title="http://ez.no" rel="nofollow" href="http://ez.no/">[11]</a></li>
<li><span class="new">Fedora Commons</span><a class="external autonumber" title="http://www.fedora-commons.org/" rel="nofollow" href="http://www.fedora-commons.org/">[12]</a></li>
<li><span class="mw-redirect">Joomla!</span></li>
<li>LG-Nuke</li>
<li><span class="new">Magnolia</span> <a class="external autonumber" title="http://www.magnolia.info" rel="nofollow" href="http://www.magnolia.info/">[19]</a></li>
<li>Mambo</li>
<li>Nuke-Evolution</li>
<li>OpenCms</li>
<li><span class="new">PHPNuke</span> <a class="external autonumber" title="http://www.phpnuke.org" rel="nofollow" href="http://www.phpnuke.org/">[30]</a></li>
<li>Plone</li>
<li><span class="new">PostNuke</span> <a class="external autonumber" title="http://www.postnuke.com" rel="nofollow" href="http://www.postnuke.com/">[31]</a></li>
<li>Typo3</li>
<li>WordPress</li>
<li>XOOPS</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.studiosacchetti.com/2009/joomla-e-i-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hosting</title>
		<link>http://www.studiosacchetti.com/2009/hosting/</link>
		<comments>http://www.studiosacchetti.com/2009/hosting/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 21:55:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informazione]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.studiosacchetti.com/?p=23</guid>
		<description><![CDATA[In ambito informatico si definisce hosting (dall&#8217;inglese to host, ospitare) un servizio che consiste nell&#8217;allocare su un server web li pagine di un sito web, rendendolo cosí accessibile dalla rete Internet. Tale &#8220;server web&#8221;, definito &#8220;host&#8221;, è connesso alla rete Internet in modalità idonea a garantire l&#8217;accesso alle pagine del sito mediante browser, con identificazione [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignleft size-full wp-image-88" title="hosting" src="http://www.studiosacchetti.com/wp-content/uploads/2009/02/hosting.gif" alt="hosting" width="100" height="115" />In ambito informatico si definisce hosting (dall&#8217;inglese to host, ospitare) un servizio che consiste nell&#8217;allocare su un server web li pagine di un sito web, rendendolo cosí accessibile dalla rete Internet. Tale &#8220;server web&#8221;, definito &#8220;host&#8221;, è connesso alla rete Internet in modalità idonea a garantire l&#8217;accesso alle pagine del sito mediante browser, con identificazione dei contenuti tramite dominio ed indirizzo IP.<br />
La fornitura di servizi di connessione ad Internet, hosting, housing, e servizi connessi, è oggi un settore economico molto specifico in cui operano molte realtà nazionali, ma anche grandi imprese transnazionali.</p>
<p style="text-align: justify;"><span id="more-23"></span>Esiste un grande ventaglio di offerte, in funzione dell&#8217;uso che si vuole fare del sito web.</p>
<p style="text-align: justify;">Un servizio tipico, per un sito statico, può tra l&#8217;altro comprendere:</p>
<dl style="text-align: justify;">
<dd>
<ul>
<li>Registrazione o trasferimento di un nome di dominio</li>
<li>Da tre a 10 indirizzi di posta elettronica, con eventuali alias</li>
<li>Filtri antispam ed antivirus</li>
<li>Un determinato quantitativo di spazio web</li>
<li>Gli strumenti adatti alla gestione delle pagine, quali file manager, prototipi, ftp, contatori di accesso, ecc.</li>
<li>Una quantità di banda mensile per il traffico generato dal sito adeguata</li>
</ul>
</dd>
</dl>
<p style="text-align: justify;">per un sito dinamico può comprendere, oltre a quanto già citato:</p>
<dl style="text-align: justify;">
<dd>
<ul style="text-align: justify;">
<li>Il supporto ad uno o più linguaggi di scripting, come ad esempio PHP, Python, o ASP</li>
<li>il supporto ad un database on line, come ad esempio MySql o Postgres</li>
<li>servizi di statistiche e analisi del traffico, come ad esempio il software libero webalizer</li>
</ul>
</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.studiosacchetti.com/2009/hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

