<?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>Cyme@_Blog &#187; Apache PHP MySQL</title>
	<atom:link href="http://cymea.net/tag/apache-php-mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://cymea.net</link>
	<description>Un site utilisant WordPress</description>
	<lastBuildDate>Mon, 06 Feb 2012 17:30:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Installer un LAMP sur Ubuntu 8.10</title>
		<link>http://cymea.net/distribution-linux/installer-un-lamp-sur-ubuntu-810</link>
		<comments>http://cymea.net/distribution-linux/installer-un-lamp-sur-ubuntu-810#comments</comments>
		<pubDate>Sun, 22 Mar 2009 11:24:58 +0000</pubDate>
		<dc:creator>fdevil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache Mysql PHP Ubuntu]]></category>
		<category><![CDATA[Apache PHP MySQL]]></category>
		<category><![CDATA[apache2: Could not reliably determine the server's fully qualified domain name]]></category>
		<category><![CDATA[Installer un LAMP sur Ubuntu 8.10]]></category>
		<category><![CDATA[PHPMyAdmin]]></category>
		<category><![CDATA[using 127.0.1.1 for ServerName]]></category>

		<guid isPermaLink="false">http://cymea.net/?p=339</guid>
		<description><![CDATA[Installation : Dans une console : apt-get install apache2 apache2-doc mysql-server php5 libapache2-mod-php5 php5-mysql En cliquant : apt://apache2,apache2-doc,mysql-server,php5,libapache2-mod-php5,php5-mysql Une fois l&#8217;installation terminée, controler depuis le navigateur si Apache répond correctement. http://127.0.0.1 Paramétrage ServerName Il faut partir du principe qu&#8217;Apache ne connait pas son nom, c&#8217;est pourquoi vous aurez très certainement ce genre de message d&#8217;avertissement ]]></description>
			<content:encoded><![CDATA[<h1>Installation :</h1>
<p>Dans une console :<br />
<code>apt-get install apache2 apache2-doc mysql-server php5 libapache2-mod-php5 php5-mysql</code></p>
<p>En cliquant :<br />
<a href="apt://apache2,apache2-doc,mysql-server,php5,libapache2-mod-php5,php5-mysql">apt://apache2,apache2-doc,mysql-server,php5,libapache2-mod-php5,php5-mysql</a></p>
<p>Une fois l&#8217;installation terminée, controler depuis le navigateur si Apache répond correctement.<br />
<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a></p>
<h1>Paramétrage</h1>
<h2>ServerName</h2>
<p>Il faut partir du principe qu&#8217;Apache ne connait pas son nom, c&#8217;est pourquoi vous aurez très certainement ce genre de message d&#8217;avertissement à chaque démarrage ou arrêt d&#8217;Apache :<br />
<strong>apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName</strong><br />
Pour éviter cela, il faut nonner Apache par l&#8217;intermédiaire de son fichier de configuration.<br />
Rien de plus simple dans une console :<br />
<code>echo ServerName localhost &gt;&gt; /etc/apache2/apache2.conf</code><br />
En éditant le fichier de configuration directement :<br />
<code>/etc/apache2/apache2.conf</code><br />
Insérer la ligne : <strong>ServerName localhost</strong><br />
Relancer votre serveur :<br />
<code>/etc/init.d/apache2 restart</code></p>
<h2>l&#8217;URL Rewriting ou le RewriteOn inactif :</h2>
<p>Ce module vous permet de réécrire une url sous une forme plus compréhensible :<br />
Exemple pour ce post :<br />
L&#8217;url de base est : http://cymea.net/?p=339<br />
Et devient : http://cymea.net/distribution-linux/installer-un-lamp-sur-ubuntu-810.html<br />
Tout ça grace à l&#8217;utilisation de l&#8217;URL Rewriting<br />
Installation :<br />
<code>a2enmod rewrite</code><br />
Cependant, même si le module est chargé par Apache, il est bloqué par les deux premières directives <strong>AllowOveride</strong> paramétrée à <strong>None</strong> dans le fichier <strong>/etc/apache2/sites-available/default</strong>.<br />
Editez le fichier : /etc/apache2/sites-available/default.<br />
<code>gedit /etc/apache2/sites-enabled/000-default &amp;amp;</code><br />
Et remplacer <strong>None</strong> par <strong>All</strong><br />
<pre><code>
NameVirtualHost *
&amp;lt;VirtualHost *&amp;gt;
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
&amp;lt;Directory /&amp;gt;
Options FollowSymLinks
&lt;strong&gt;AllowOverride All&lt;/strong&gt;
&amp;lt;/Directory&amp;gt;
&amp;lt;Directory /var/www/&amp;gt;
Options Indexes FollowSymLinks MultiViews
&lt;strong&gt;AllowOverride All&lt;/strong&gt;
Order allow,deny
allow from all
&amp;lt;/Directory&amp;gt;
</code></pre><br />
Relancer votre serveur :<br />
<code>/etc/init.d/apache2 restart</code></p>
<h2>Module PHP</h2>
<p>Pour contrôler si les modules PHP sont actifs, vous pouvez écrire un fichier comme celui là :<br />
<code>gedit /var/www/phpinfo.php &amp;amp;</code><br />
Insérer cette ligne :<br />
<code>&amp;lt;?&nbsp;&nbsp;echo phpinfo(); ?&amp;gt;</code><br />
Et tester PHP :<br />
<a href="http://127.0.0.1/phpinfo.php" target="_blank">http://127.0.0.1/phpinfo.php</a></p>
<p>Si votre navigateur vous demande de télécharger le fichier, il faudra redémarrer Apache, le module PHP n&#8217;étant pas chargé par le serveur.<br />
<code>/etc/init.d/apache2 restart</code></p>
<h2>PHPMyAdmin</h2>
<p>Ou comment gérer au mieux votre base de données par l&#8217;intermédiaire d&#8217;une interface graphique. Rien à voir avec <a href="http://www.alaide.com/dico.php?q=ODBC" target="_blanck">les liens ODBC</a>, un ingénieur réseau m&#8217;avait une fois mis en garde lors d&#8217;une mise à jour. Je pense encore aujourd&#8217;hui que cette personne n&#8217;a rien à faire en informatique, à part peut être dire de la merde&#8230;mais vu le tarifs de sa paye, je me pose encore plus de questions sur son recrutement. Mais ceci est un autre débat.<br />
Bien, l&#8217;installation :<br />
<code>apt-get install phpmyadmin</code><br />
<a href="apt://phpmyadmin">apt://phpmyadmin</a><br />
Il vous sera sans doute demander vers quelle application vous voulez  vous tourner, choisir Apache2 et terminer.<br />
Tester votre installation :<br />
<a href="http://127.0.0.1/phpmyadmin/" target="_blank">http://127.0.0.1/phpmyadmin/</a><br />
Ca marche, c&#8217;est super, ne reste plus que l&#8217;installation du site Web propement dit.</p>
<h1Sources :</h1>
<p><a href="http://doc.ubuntu-fr.org/lamp" "target=_blank">http://doc.ubuntu-fr.org/lamp</a></p>
<p><a href="http://apprendrelinux.blogspot.com/2008/07/activer-le-mod-rewrite-dapache-avec.html" target="_blanck">http://apprendrelinux.blogspot.com/2008/07/activer-le-mod-rewrite-dapache-avec.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cymea.net/distribution-linux/installer-un-lamp-sur-ubuntu-810/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

