Featured Posts

GoAccess is an interactive and website / web-server log analyzer tool currently better than the ApacheTop interface. It provides fast and valuable HTTP statistics for system administrators that require a visual...

Readmore

AjaxMyTop AjaxMyTop is a Web-based tool featuring an AJAX user interface for monitoring a MySQL server. Installing and configuring is fairly simple which you can done it within 2 minutes. [caption id="attachment_587"...

Readmore

Mod_spin is a content handler and/or a filter, meaning, for a specified file extension, mod_spin will read the file (or other input), parse it into an Abstract Syntax Tree (AST) and then replace the occurrences...

Readmore

Server Monitoring using DSTAT DSTAT an excellent tool which combines the overall stats of vmstat, iostat, netstat and ifstat. Dstat allows us to view all of the system resources in the real-time including the network bandwidth, network...

Readmore

BWM-NG Monitoring Network Bandwidth and Disk I/O using BWM-NG BWN-NG (Bandwidth-NG) is old and simple tool to monitor the bandwidth and disk I/O including the RAMdisk usage, this tool really helps the...

Readmore

  • Prev
  • Next

Apache on multiple ports

Posted on : 04-10-2011 | By : admin | In : Web Server

Tags:

1

Archived; click post to view.
Excerpt: Question : How do i run apache on multiple ports?   Similar to exim and other services, apache do have capability to run on multiple ports. All you have to do it to edit the httpd.conf file and added a new Listen line which the specific port no which you like to run.   # vi /etc/httpd/conf/httpd.conf Add below the Listen 80 line (for example if you want to run on port 8080)   Listen 8080   Restart the service httpd service.   Question : Is it possible to run a single Vhost on different port (example : 8080) and others on the normal port?   Yes, it is possible but is vhost….

Memcached on php & Mysql

Posted on : 03-10-2011 | By : admin | In : Tips

Tags:

1

Archived; click post to view.
Excerpt: The largest problem with scalability within a typical environment is the speed with which you can access information. For fre-quently accessed information, using MySQL can be slow because each access of information requires execution of the SQL query and recovery of the information from the database. This also means that queries on tables that are locked or blocking may delay your query and reduce the speed of recovery of information. Memcached is a simple, yet highly scalable key-based cache that stores data and objects wherever dedicated or spare RAM is available for very quick access by applications. To use, you run….

Using vi editor to remove ^M

Posted on : 26-09-2011 | By : admin | In : Tips

Tags:

3

Sometimes, when you open a file under Linux that was originaly created in Windows OS, special characters like ^M appear here and there. You can try the following solution on your vi editor to clear up those junk characters.   Open the file in your vi editor (for example file name : file-name.txt)  

  • # vi file-name.txt

  Hit “Esc” and type  

  • :set ff=unix

Now save and exit from the file using  

  • :wq!

Try open that file once again and look for those junk characters, it should be gone now. You can also use the dos2unix tool to fix it for large sized files.