Posts Tagged ‘Linux’
Monday, June 30th, 2008
Client/Server Request/Response
HTTP is a simple client/server protocol with stateless request/response sequences.
The Client HTTP Request
7 possible HTTP 1.1 request types: GET, PUT, POST, DELETE, HEAD, OPTIONS and TRACE.
Any number of HTTP headers can accompany a request.
GET /filename.php HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Charset: iso-8859-1,*,utf-8
Accept-Encoding: gzip
Accept-Language: en
Connection: Keep-Alive
Host: localhost
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.5-pre4 i686; Nav)
The Server HTTP Response
HTTP/1.1 200 OK
Date: Mon, 21 May 2001 17:01:51 GMT
Server: Apache/1.3.20-dev (Unix) PHP/4.0.7-dev
Last-Modified: Fri, 26 Jan 2001 06:08:38 GMT
ETag: “503d3-50-3a711466″
Accept-Ranges: bytes
Content-Length: 80
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
Tags: Client, Connection, Delete, get, HEAD, HTTP, Image, Linux, localhost, Options, PHP, post, PUT, REQUEST, response, server, Text, Trace
Posted in PHP | No Comments »
Monday, June 30th, 2008
Enable Apache to bind port 81 or other non-standard port under Redhat SELinux
login as root
Add a port
[root@acer ~]# semanage port -a -t http_port_t -p tcp 81
Remove a port
[root@acer ~]# semanage port -d -t http_port_t -p tcp 81
List all enabled http ports
[root@acer ~]# semanage port -l | grep http
Tags: Apache, Enable, HTTP, Linux, List, port, Redhat, root, standard
Posted in Uncategorized | No Comments »
Monday, June 30th, 2008
tar -cvf svnrepo_`date +%Y-%m-%e`.tar /var/svn/repo
gzip -9 svnrepo_`date +%Y-%m-%e`.tar
Tags: backup, gzip, Linux, SVN
Posted in Uncategorized | No Comments »
Monday, June 30th, 2008
diff -u -r -B -N -s FOLDER1 FOLDER2
Tags: diff, folder, Linux, recursive
Posted in Uncategorized | No Comments »
Monday, June 30th, 2008
wget –limit-rate=15k –random-wait -bd -i 1-2.txt
go in background limit download at 15KB/sec and load this download list: 1-2.txt (download location per line)
Tags: download, File, limit, Linux, location, per line, UNIX, Using, web site
Posted in Uncategorized | No Comments »
Monday, June 30th, 2008
crontab -u root -e
Edit current job list for root user.
crontab -u root -l - lists the crontab job list for the root user.
crontab -u root -r - removes the crontab job list for the root user.
crontab run script every 5 minutes
# min hour day/month month day/week
*/5 * * * * /root/script.pl
crontab run script every 10 minutes
# min hour day/month month day/week
*/10 * * * * /root/script.pl
crontab run script every 15 minutes
# min hour day/month month day/week
*/15 * * * * /root/script.pl
# run fifteen minutes after midnight, every day
15 0 * * * /root/script.pl
a crontab entry fields are:
1. Minute - Minutes after the hour (0-59).
2. Hour - 24-hour format (0-23).
3. Day - Day of the month (1-31).
4. Month - Month of the year (1-12).
5. Weekday - Day of the week. (0-6, where 0 indicates Sunday).
Tags: crontab, daemon, day, entry, every, execute, fields, Hour, Linux, Minute, month, schedule, simple, Usage, Weekday
Posted in Uncategorized | No Comments »
Monday, June 30th, 2008
set http_proxy=http://your_proxy_server:1080
Tags: HTTP, Linux, proxy, server, Set, set up, WGET
Posted in Uncategorized | No Comments »
Saturday, June 28th, 2008
Windows
ConTEXT - version 0.97.4; freeware
Crimson Editor - version 3.60; freeware
Programmer’s Notepad -
PSPad - version 4.3.0; freeware
Notepad++
NuSphere PhpED - version 5.0; commercial
NuSphere Nu-Coder - version 1.4; commercial
Mac OS X
skEdit
Smultron - version 1.0.1; freeware
TextWrangler
TextMate
Coda
Linux
Bluefish - version 1.0; other
Geany
gedit
gPHPEdit
Kate - version 2.2; freeware
Quanta Plus - version 3.2.1; freeware
Multiple OS
NetBeans
Eclipse
Aptana
Emacs - version 21; freeware
jEdit - version 4.1; freeware
SciTE - version 1.53; freeware
Vim - version 6.1; freeware
nano
Tags: commercial, Eclipse, Editors, freeware, jEdit, Linux, List, Mac OS, Multiple, NetBeans, Notepad, PHP, SciTE, Textmate, version, Vim, windows
Posted in PHP | No Comments »
Saturday, June 28th, 2008
Price Compared to ASP, PHP installations are absolutely cheaper to install. PHP perfectly runs on Linux (which is a free OS) and programmers use MySQL .(which also comes FREE)ASP runs on the IIS Server (Internet Information Server) which requires Windows N.T/2000/2003 Servers or better. Aside from that ASP mostly uses MS-SQL Server as the back end which is really expensiveThe Bottomline: PHP is CheaperCross Platform compatibility PHP programs run on a wider variety of OS Unix, Linux, Solaris and Window’s.ASP on the other hand only works flawlessly with Windows.Bottomline: PHP tops ASP.net in terms of versatility.SecurityThe biggest disadvantage with PHP and any open source software must be the fact that companies do not want it because they do not trust PHP.To be Continued…
Tags: ASP, better, installations, Linux, MySQL, PHP, server, Solaris, UNIX
Posted in PHP | No Comments »
Saturday, June 21st, 2008
I have had the opportunity to use Cpanel 11 from September, and my ranking of the Linux/Apache hosting control panel is quite high. I had to wait this long on the advice of my server management company, to upgrade to the most stable version of Cpanel 11.
The first and most striking impression is the new looks. The entire user interface of Cpanel has been overhauled and its now much more visually-appealing. The icons that link to the main controls have also been re-arranged into more relevant groups and same goes with a new Notice panel that displays on the top left corner of the Cpanel first screen. The Notice panel displays vital warnings about the hosting account in red, and also carries News from the web host or server administrator.
Some controls hitherto placed a few clicks into the panel have been brought to the homepage making such controls more accessible. Even better, cPanel shortcuts have been introduced. These links can be added to your desktop or your browser’s bookmarks toolbar. They are an easy way to access your cPanel.
What makes the several panels better is that they can actually be moved to suit the preference of the user. All a user has to do is drag-and-drop. The overall theme of Cpanel can be changed as well. Thats not new, but whats new are the several other more visually-appealing themes that have been added.
For a new Cpanel user, there are free Video Tutorials that would guide them through all the basics of using Cpanel 11. Similar videos have been made available before now by other companies, for a fee. Not to forget the “Getting Started Wizard”, a 7-page basic guide that takes new Cpanel users through the rudiments of setting-up their new hosting account.
The Cpanel interface loads faster as well. In some cases, processes are carried-out using AJAX thus the entire page needs not be re-loaded, to complete a process. Some back-end processes now run faster as well. Example? SpamAssasin. It now requires less server resources.
These are a few amongst the several CPanel improvements that make an upgrade a must. What has been your experience with using Cpanel 11? Share your thoughts here and now.
Tags: administrator, Ajax, Apache, appealing, company, Control Panel, Cpanel, displays, faster, Hands, impression, Interface, Linux, management, opportunity, Processes, Ranking, September, server, SpamAssasin, striking, visually, visually-appealing
Posted in news | No Comments »