<?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: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-31399752</id><updated>2011-12-27T05:38:50.869+01:00</updated><title type='text'>My Technical Knowledge Base</title><subtitle type='html'>My name is David and I'm french, located in Paris.
In this blog, I'll add all kind of knowledge I want to keep written somewhere and share with you.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://technical-knowledge-base.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://technical-knowledge-base.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Cadey</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-31399752.post-115445256036138153</id><published>2006-08-01T19:12:00.000+02:00</published><updated>2006-08-01T19:16:00.376+02:00</updated><title type='text'>Backup/transfer MySQL database with structure and datas</title><content type='html'>Wondering about how to backup or transfer a mysql database from one box to another.&lt;br /&gt;By transfer/backup I mean structure + datas.&lt;br /&gt;&lt;br /&gt;There's a mysql tool called mysqldump&lt;br /&gt;It's free and included by default (I suppose) in most mysql installations.&lt;br /&gt;&lt;br /&gt;The syntax is :&lt;br /&gt;&lt;br /&gt;mysqldump -u user -p mydatabase &gt; file.sql&lt;br /&gt;&lt;br /&gt;Example :&lt;br /&gt;&lt;br /&gt;mysqldump -u cadey -p customers &gt; customers.sql&lt;br /&gt;&lt;br /&gt;This will generate a file called customers.sql which I can then FTP to another box.&lt;br /&gt;There I'll use :&lt;br /&gt;&lt;br /&gt;mysql customers &lt; customers.sql&lt;br /&gt;&lt;br /&gt;This will integrate the customers.sql datas into the customers database.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31399752-115445256036138153?l=technical-knowledge-base.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://technical-knowledge-base.blogspot.com/feeds/115445256036138153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31399752&amp;postID=115445256036138153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115445256036138153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115445256036138153'/><link rel='alternate' type='text/html' href='http://technical-knowledge-base.blogspot.com/2006/08/backuptransfer-mysql-database-with.html' title='Backup/transfer MySQL database with structure and datas'/><author><name>Cadey</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31399752.post-115374110967029987</id><published>2006-07-24T13:33:00.000+02:00</published><updated>2006-07-24T13:38:29.676+02:00</updated><title type='text'>Creloaded is full of bugs</title><content type='html'>As you maybe read in previous posts, I've bought the e-Commerce shopping cart called Creloaded.&lt;br /&gt;&lt;br /&gt;I'm really disapointed with that one. It's totally full of bugs, lots of unexpected problems appear during configuration.&lt;br /&gt;Their technical support give almost no answer... I get robbed, that's too bad.&lt;br /&gt;&lt;br /&gt;I advice no one to go for their paid version.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31399752-115374110967029987?l=technical-knowledge-base.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://technical-knowledge-base.blogspot.com/feeds/115374110967029987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31399752&amp;postID=115374110967029987' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115374110967029987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115374110967029987'/><link rel='alternate' type='text/html' href='http://technical-knowledge-base.blogspot.com/2006/07/creloaded-is-full-of-bugs.html' title='Creloaded is full of bugs'/><author><name>Cadey</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31399752.post-115347173161616948</id><published>2006-07-21T10:40:00.000+02:00</published><updated>2006-07-21T13:01:04.423+02:00</updated><title type='text'>First step in securing a linux server</title><content type='html'>What to do if you want to secure a minimum your Linux box? You have to restrict SSH access to it.&lt;br /&gt;&lt;br /&gt;Go in the /etc/ssh/sshd_config file.&lt;br /&gt;There you'll see a &lt;span style="font-style: italic;"&gt;PermitRootLogin &lt;/span&gt;instruction. Set it to "no". Like this, root user won't be allowed to connect using SSH.&lt;br /&gt;&lt;br /&gt;Why the hell would you do that and then after how will you manage your server? You'll access to root commands by allowing normal users to connect to ssh, then they will issue a "su" command to become root.&lt;br /&gt;This is more secure because you get bigger control. Indeed "su" commands are logged. So you will know who switched to root and when. If for instance you have 3 admins in your company and you provide "root" profile to all of them, you'll never know who did what. But if they connect with their normal user then issue a "su" command, you'll know they did it and when, they cannot negate.&lt;br /&gt;Also blocking root access to SSH will block common hacking trials on your server.&lt;br /&gt;&lt;br /&gt;Second thing I did on my box is blocking all users (but me) to access by SSH. I mean normal users (FTP accounts, email accounts...) don't need to have SSH.&lt;br /&gt;&lt;br /&gt;To do that, go in the /etc/ssh/sshd_config file.&lt;br /&gt;You can see an instruction (if not create it) AllowUsers. If you put "AllowUsers david" then only user david will be allowed to connect by ssh.&lt;br /&gt;You could also use DenyUsers if you prefer, but I prefer AllowUsers&lt;br /&gt;&lt;br /&gt;Same works for AllowHosts/DenyHosts if you only want certain hosts to be allowed to connect.&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;&lt;code&gt;&lt;code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31399752-115347173161616948?l=technical-knowledge-base.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://technical-knowledge-base.blogspot.com/feeds/115347173161616948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31399752&amp;postID=115347173161616948' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115347173161616948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115347173161616948'/><link rel='alternate' type='text/html' href='http://technical-knowledge-base.blogspot.com/2006/07/first-step-in-securing-linux-server.html' title='First step in securing a linux server'/><author><name>Cadey</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31399752.post-115347119907694590</id><published>2006-07-21T10:34:00.000+02:00</published><updated>2006-07-21T10:39:59.083+02:00</updated><title type='text'>AllowOverride parameter for Apache when installating Creload</title><content type='html'>Yesterday I wanted to install an e-Commerce script called Creloaded.&lt;br /&gt;After installation, displaying the pages, they where showing "500 Internal Server Error".&lt;br /&gt;This is an Apache error message.&lt;br /&gt;&lt;br /&gt;How did I fix that?&lt;br /&gt;&lt;br /&gt;First I went to look into the /var/log/apache/error.log file&lt;br /&gt;It was saying "php_value not allowed".&lt;br /&gt;&lt;br /&gt;The mistake was that in the creload directories, there are .htaccess files. Those files contains some extra configuration that have to override the default one from Apache. So it's like if you configure your Apache to tell him to speak french, and in the .htaccess file, there is an instruction that say "for that directory your going to speak english"&lt;br /&gt;&lt;br /&gt;Doing that was not a mistake. It's just that my Apache was configured in a way to say "don't allow .htaccess files to override configuration".&lt;br /&gt;The only thing I had to do was to goin in the Apache conf file (/etc/apache/httpd.conf) and add a line like this :&lt;br /&gt;&lt;br /&gt;"AllowOverride All"&lt;br /&gt;&lt;br /&gt;Then it worked ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31399752-115347119907694590?l=technical-knowledge-base.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://technical-knowledge-base.blogspot.com/feeds/115347119907694590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31399752&amp;postID=115347119907694590' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115347119907694590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115347119907694590'/><link rel='alternate' type='text/html' href='http://technical-knowledge-base.blogspot.com/2006/07/allowoverride-parameter-for-apache.html' title='AllowOverride parameter for Apache when installating Creload'/><author><name>Cadey</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31399752.post-115339633331224875</id><published>2006-07-20T13:45:00.000+02:00</published><updated>2006-07-20T13:52:13.313+02:00</updated><title type='text'>How to create an FTP account on a Linux server ?</title><content type='html'>This morning I had to create an FTP account on a Linux Server.&lt;br /&gt;&lt;br /&gt;I wanted to restrict access to a specific directory like /home/web1&lt;br /&gt;I also wanted that the user will be called user1&lt;br /&gt;&lt;br /&gt;It's simple, no hassle, here are the commands :&lt;br /&gt;&lt;br /&gt;cd /home&lt;br /&gt;mkdir web1&lt;br /&gt;adduser user1 (then asked for password I enter it)&lt;br /&gt;usermod -d /home/web1 user1&lt;br /&gt;&lt;br /&gt;Why did I use the usermod command?&lt;br /&gt;&lt;br /&gt;When you create an account with adduser, a default home directory will be created for the user, this directory will be mapped by default when I ftp on the linux box.&lt;br /&gt;By using usermod command with -d parameter, you change the default home directory for that user.&lt;br /&gt;&lt;br /&gt;Result : when user1 connects by ftp to the linux box, he'll be directly connected to the /home/web1 directory&lt;br /&gt;&lt;br /&gt;To allow him to create files, I'll probably also have to do some chmod on the /home/web1 directory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31399752-115339633331224875?l=technical-knowledge-base.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://technical-knowledge-base.blogspot.com/feeds/115339633331224875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31399752&amp;postID=115339633331224875' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115339633331224875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31399752/posts/default/115339633331224875'/><link rel='alternate' type='text/html' href='http://technical-knowledge-base.blogspot.com/2006/07/how-to-create-ftp-account-on-linux.html' title='How to create an FTP account on a Linux server ?'/><author><name>Cadey</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
