Tag Archives: LAMP

Send email from PHP inside local LAMP development environment

Sendmail LAMP Very often when developing for web inside your LAMP environment you need to send emails using PHP. Configuring fully fledged email server on your Linux box is an option, although one I don't recommend. Life's too short to spend it configuring many mail transport agent of your choice configuration files just to check is your PHP application sending emails or not. In this article I'll show you how make your development environment capable of testing email sending features of your PHP applications in almost no time.

Continue reading

LAMP development in your home directory with suPHP module

suPHP Logo In one of my earlier articles I've described how to easily manage LAMP name based virtual hosts using bash script that simplifies virtual hosts management on a Debian based Linux operating systems. While I was coding the script in question, I have assumed that most people develop from default document root /var/www and using Apache's mod_php5. In this article I'll show you how to setup your LAMP environment to develop in your home directory using another Apache module suPHP.

Continue reading

Install Magento on Ubuntu and fix PHP Extensions "0" must be loaded error with PHP 5.4

Magento LogoEvent though I follow MVC pattern in many of my web related projects, like every PHP web developer I came to the point when I have to dive into some well established MVC PHP framework. This is something backend developer must do if he wants to stop being a lone wolf and start working inside a team of developers. Web frameworks of my choice are fast Codeigniter and powerful Zend Framework. Getting to know about Codeigniter wasn't hard, but mastering Zend is still work in progress especially since Zend Framework 2 has been recently released. Talking about Zend, recently I got interested in getting to know about open source eCommerce solutions and I choose to get acquainted with Zend based Magento. In this article I'll show you how to install Magento on a Debian based distributions like Ubuntu and provide workaround for the PHP Extensions "0" must be loaded error thrown by Magento installer running on PHP 5.4.

Continue reading

Fix "Could not reliably determine the server's fully qualified domain name" when starting Apache server on Ubuntu

Apache logoUsing Apache 2 development environment on your Ubuntu machine most likely involves looking at "Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" message each time your machine boots. Here's how to make this irritating message disappear when starting Apache 2 server by specifying ServerName inside Apache 2 configuration files.

Continue reading

Ubuntu Netbeans and LAMP server with Xdebug as non-root user

In this article I'll show you how to setup Linux Apache Mysql PHP (LAMP) web development environment on Ubuntu Linux with your web site files in your home directory. This way you can easily develop for web as non-root user. If you are trying to install Linux Apache Mysql PHP on Windows, I'll point you to one of my previous articles where I have explained just that:

Apache, MySQL, PHP server on Windows

My goals for this session are to install Apache, MySQL and PHP with Xdebug module for PHP development debugging. We will setup Xdebug and use it with Netbeans, but once Xdebug is properly installed, you can debug your applications with any other application like Eclipse. The most important thing for a web developer or web programmer is to be able to easily modify his web development files without becoming root for everything he is working on. I will show you how to instruct Apache to make virtual host in your home directory. At the end of it all I will install Netbeans and create sample project to work with our new development environment. So lets get started...

Continue reading