top
logo


feed-image RSS
Home LAMP

LAMP



Make Apache listen on a different port

PDF Print E-mail
Written by Alex Balyuk   
Thursday, 30 September 2010 04:38
multiple web servers

Sometimes it is necessary to run multiple web servers on 1 machine, especially in development environment. To accomplish this task you need to have web servers listen on different ports.

For example:

  • IIS - http://localhost:80
  • Apache 2 - http://localhost:81
  • TomCat - http://localhost:8080

I will show you how to make Apache listen to port 81 instead of default port 80.

Last Updated on Thursday, 30 September 2010 05:02
 

Installing XDebug on XAMPP

PDF Print E-mail
(2 votes, average 5.00 out of 5)
Written by Alex Balyuk   
Sunday, 05 September 2010 03:14

XAMPP XAMPP is extremely popular all-in-one web server. It makes a extremely easy for developers to setup development, testing and staging servers in literally minutes. One of the things that I missed was XDebugXDebug on XAMPP. Somethings code gets really complex and step through it and see how it behaves is needed. Below you will find an easy instructions on how to install XDebug on XAMPP under Linux without downloading and compiling XDebug sources. 

Last Updated on Sunday, 05 September 2010 03:56
 

NetBeans Custom Project License

PDF Print E-mail
(3 votes, average 5.00 out of 5)
Written by Alex Balyuk   
Sunday, 15 August 2010 16:06

Ever wondered how most professionally done projects have nice license block at the top of every source file?

This block is more important than you think. I provides a lot of useful information about the file, where it came from, when, why, and who... This information is very useful and will help you and other developers to understand reasoning behind the file's existence. It would be very annoying to copy and paste license block into every file and modify timestamps for @id property every time you edit the file. This block is generated automatically by an IDE such as NetBeansNetBeans, here is how it is done...

Last Updated on Monday, 06 September 2010 20:04
 

PHP Cronjob with parameters

PDF Print E-mail
(5 votes, average 5.00 out of 5)
Written by Alex Balyuk   
Thursday, 05 August 2010 18:35

PHP the most popular scripting language in the world. Many people use it for different things. I recently worked on a custom joomla component that required a scheduled task (cronjob). The task required joomla libraries so I created a "cronjob" controller to handle this scenario. Controller gives access to all MVC features, such as models and therefore tables. If you know, Joomla has only one entry point and it is right through the front door (e.g. index.php) with parameters that route to desired destination. When I wanted to schedule my crontab I found out that it is not as simple as it seems. Here is what you have to do to create any cronjob that executes php page/script and required query string (key/value) parameters.

Last Updated on Thursday, 19 August 2010 15:33
 

CentOS 5 Minimalist

PDF Print E-mail
(8 votes, average 5.00 out of 5)
Written by Alex Balyuk   
Tuesday, 03 August 2010 13:35

centos_logo_45

Virtualization is very popular nowadays. There is no need to have hundreds of phisical computers, one powerful server can manage 10+ virtual machines on its own. I worked on a distributed applicationdistributed application with share nothing architectureshare nothing architecture that requiered minimum of 8 nodes and a master server. The nodes interact with master server via API calls and constantly processed little chunks of data (time consuming task with little CPU usage) and reported back to the master server. The problem arrised when VMware ServerVMware Server started getting slugish,  therefore all the nodes became very slow. To fix the problem I came out with idea to minimize the nodes at much as possible, living only importan operating system and application specific services running. In this article you will find out how to setup RHEL RHEL (Cent OS 5) server with minimal resource usage and how to work around crazy RHEL caching that uses 50%+ of RAM.

Last Updated on Tuesday, 05 October 2010 03:55
 




Copyright © 2012 (bool) cast.com. All Rights Reserved.
Joomla!Joomla! is Free Software released under the GNU/GPL License.GNU/GPL License.

bottom
top
Site Map | Contact Us

bottom