<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1404733142439547886</id><updated>2018-10-29T11:23:25.849+02:00</updated><title type='text'>Ahmed Helal</title><subtitle type='html'>مدونة تهتم بالرياضيات و علوم الحاسب و ما يتعلق بهم كذلك بمهارات التى لها علاقة بهما&#xa;mathematics and computer science and skills related to them</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://ahmed-helal-ahmed-ali.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1404733142439547886/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://ahmed-helal-ahmed-ali.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1404733142439547886.post-177978409680004326</id><published>2018-02-24T12:41:00.001+02:00</published><updated>2018-02-24T12:41:30.222+02:00</updated><title type='text'>python and django commends</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Please make sure that MySQLdb module is installed at your machines. &lt;br /&gt; Checking step:&lt;br /&gt; 1- open python shell&lt;br /&gt; &amp;gt;&amp;gt; python&lt;br /&gt;&lt;div class=&quot;text_exposed_show&quot;&gt; 2- import the module&lt;br /&gt; &amp;gt;&amp;gt; import MySQLdb&lt;br /&gt; # if no news, then good news&lt;br /&gt; else &quot;Error no module named MySQLdb&quot; exist() and do step 3&lt;br /&gt; 3- install module&lt;br /&gt; &amp;gt;&amp;gt; sudo apt-get install python-mysqldb&lt;br /&gt; and then confirm by repeating first 2 steps again.&lt;br /&gt;===============================&lt;br /&gt;Make sure of installing the Django framework on your machines&lt;br /&gt; &amp;gt;&amp;gt; sudo apt-get update&lt;br /&gt; &amp;gt;&amp;gt; sudo apt-get install python-django&lt;br /&gt;&lt;div class=&quot;text_exposed_show&quot;&gt; then check it by:&lt;br /&gt; &amp;gt;&amp;gt; django-admin --version&lt;br /&gt; &amp;gt;&amp;gt; 1.8.7&lt;br /&gt; and also pymysql module&lt;br /&gt; &amp;gt;&amp;gt; sudo apt-get install python-pymysql&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;موجز النشر&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://ahmed-helal-ahmed-ali.blogspot.com/feeds/177978409680004326/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='https://ahmed-helal-ahmed-ali.blogspot.com/2018/02/python-and-django-commends.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1404733142439547886/posts/default/177978409680004326'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1404733142439547886/posts/default/177978409680004326'/><link rel='alternate' type='text/html' href='https://ahmed-helal-ahmed-ali.blogspot.com/2018/02/python-and-django-commends.html' title='python and django commends'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-1404733142439547886.post-717893882974025444</id><published>2018-01-19T08:48:00.000+02:00</published><updated>2018-01-19T12:19:03.388+02:00</updated><title type='text'>Ubuntu, apache2, php7.0, mysql server and phpmyadmin</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;br /&gt;Today i installed Ubuntu 2016&lt;br /&gt;on partion in the hard disk using somthing else option as following&amp;nbsp; &lt;br /&gt;root&amp;gt;51200&lt;br /&gt;boot&amp;gt;2048&lt;br /&gt;home&amp;gt;357991 &lt;br /&gt;swap&amp;gt;8193 (must be the last one) &lt;br /&gt;now i&#39;m going to install apache2 to make local server&lt;br /&gt;then&lt;br /&gt;PHP 7.0 to program with this language and enable the local server to understand it&lt;br /&gt;then&lt;br /&gt;mysql server to make database&lt;br /&gt;then&lt;br /&gt;phpmyadmin to deal with the database&lt;br /&gt;then&lt;br /&gt;jdk and netbeans which is editor for java and php and other language and scripting programming&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;let&#39;s start&lt;br /&gt;&lt;br /&gt;first of all i&#39;m going to update&lt;br /&gt;&amp;gt;sudo apt-get update&lt;br /&gt;&lt;br /&gt;the next is that i&#39;m going to install apache2&lt;br /&gt;&amp;gt;sudo apt install apache2&lt;br /&gt;&lt;br /&gt;now i&#39;m going to test my local host&lt;br /&gt;in the address of the browser i&#39;m going to write&lt;br /&gt;127.0.0.1&lt;br /&gt;the page with title&lt;br /&gt;&lt;span class=&quot;floating_element&quot;&gt;Apache2 Ubuntu Default Page&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;floating_element&quot;&gt;appeared&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;floating_element&quot;&gt;that&#39;s good&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the next i&#39;m going to install php 7.0&lt;br /&gt;&amp;gt;sudo apt-get install php7.0&lt;br /&gt;&lt;br /&gt;now let&#39;s make php file to test the php&lt;br /&gt;&amp;gt;sudo vim /var/www/html/test.php&lt;br /&gt;&lt;br /&gt;but i donot have vim program so i&#39;m going to install it&lt;br /&gt;&amp;gt;sudo apt install vim&lt;br /&gt;now i can&lt;br /&gt;&amp;gt;sudo vim /var/www/html/test.php&lt;br /&gt;&lt;br /&gt;i pressed i to be in insertmood&lt;br /&gt;type&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo &quot;Hello world from PHP file &quot;;&lt;br /&gt;&amp;nbsp;?&amp;gt; &lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;i pressed esc&lt;br /&gt;to be in command mood&lt;br /&gt;then i pressed :wq&lt;br /&gt;to save what i wrote in the file&lt;br /&gt;&lt;br /&gt;i went to : http://127.0.0.1/test.php&lt;br /&gt;&lt;br /&gt;this open empty page&lt;br /&gt;i&amp;nbsp; need to restart my apache&lt;br /&gt;&lt;br /&gt;to restart the apache&lt;br /&gt;&amp;gt;/etc/init.d/apache2 restart&lt;br /&gt;&lt;br /&gt;still empty page&lt;br /&gt;so i&#39;m going to configure the apache and php with this commands&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;gt;sudo a2enmod proxy_fcgi setenvif&lt;br /&gt;&amp;nbsp;&amp;gt;sudo a2enconf php7.0-fpm&lt;br /&gt;&amp;gt;/etc/init.d/apache2 restart&lt;br /&gt;&lt;br /&gt;i went&amp;nbsp; to : http://127.0.0.1/test.php&lt;br /&gt;i found the page i had written it compiled&lt;br /&gt;&lt;br /&gt;now l&#39;s install netbeans from Ubuntu software&lt;br /&gt;i&#39;m installing plugins for php&lt;br /&gt;from tools plugins . . .&amp;nbsp; &lt;br /&gt;then&lt;br /&gt;i&#39;m going to install mysql server&lt;br /&gt;&amp;gt;sudo apt-get update &lt;br /&gt;&amp;gt;sudo apt-get install mysql-server&lt;br /&gt;&amp;gt;sudo mysql_secure_installation &lt;br /&gt;&amp;gt;sudo mysql_install_db //this commend did not working with me&lt;br /&gt;&amp;gt;mysql -u root -p&lt;br /&gt;then i wrote the password for database&lt;br /&gt;&amp;nbsp;&amp;gt;show databases;&lt;br /&gt;&amp;gt;exit;&lt;br /&gt;&amp;gt;service mysql status&lt;br /&gt;&amp;nbsp;i pressed q to exit the status&lt;br /&gt;it&#39;s work good&lt;br /&gt;now i&#39;m going to install phpmyadmin&lt;br /&gt;&amp;gt;sudo apt-get install phpmyadmin&lt;br /&gt;i went&amp;nbsp; to : http://localhost/phpmyadmin/&lt;br /&gt;this is not work (not found)&lt;br /&gt;&lt;br /&gt;the next commend very important and i can make it by two ways&lt;br /&gt;mathod 1 :&lt;br /&gt;&amp;gt;sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf&lt;br /&gt;method 2 :&lt;br /&gt;after installing phpmy admin :&lt;br /&gt;open the file and &lt;br /&gt;&amp;gt;nano /etc/apache2/apache2.conf&lt;br /&gt;Add the following to the bottom of the file:&lt;br /&gt;phpMyAdmin Configuration  &amp;gt;Include /etc/phpmyadmin/apache.conf&lt;br /&gt;in the previous last line&lt;br /&gt;&lt;br /&gt;now i need to restart apache&lt;br /&gt;&amp;gt;/etc/init.d/apache2 restart&lt;br /&gt;i opened : http://localhost/phpmyadmin/&lt;br /&gt;i got Welcome to phpMyAdmin&lt;br /&gt;that&#39;s all &lt;br /&gt;Ahmed Helal Ahmed @ ITI&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;موجز النشر&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://ahmed-helal-ahmed-ali.blogspot.com/feeds/717893882974025444/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='https://ahmed-helal-ahmed-ali.blogspot.com/2018/01/ubuntu-apache2-php70-mysql-server-and.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1404733142439547886/posts/default/717893882974025444'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1404733142439547886/posts/default/717893882974025444'/><link rel='alternate' type='text/html' href='https://ahmed-helal-ahmed-ali.blogspot.com/2018/01/ubuntu-apache2-php70-mysql-server-and.html' title='Ubuntu, apache2, php7.0, mysql server and phpmyadmin'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry></feed>