

#Lamp environment update
You'll also need to update your /etc/hosts file by changing the first line from 127.0.0.1 localhost Then execute the following commands: $ sudo a2ensite somesite In our example, it would be a virtual host for Here's an example of such a file:

This way, when you migrate a wordpress database, you don't have to edit the site address. It's best to create a virtual host on your computer, by creating a new file called somesite (your site name) under /etc/apache2/conf/sites-available/Ĭreate a VirtualHost for the full URL. I'm not entirely opposed to using a VM (as seen here, but only as a last resort the netbook probably isn't powerful enough, and I generally refer to work on a local copy of things.įor starters, it's not a good idea to stick everything under /var/www and point the browser to For one, it complicates things when you move to a new server later on.

I guess it might start with modifying the apache configuration to point to a develoment folder in my ~/ folder, but I've had terrible problems with permissions there.įor the record, I'm running Xubuntu 9.10 on one system, and Ubuntu-netbook 9.10 on the other.Īny advice or guide I can refer to for this? What are some best-practices for setting up a decent LAMP environment that simulates - at least partially - the convenience of a hosted environment? I've tried using XAMPP, which comes with a built-in FTP setup, but then all the files uploaded via the web interface are given the permissions of user nobody.I have to keep sudo-ing every time I need to modify the contents of the site folder I'm working on (theme files, etc.).
#Lamp environment install
I can't install themes or plugins through the Wordpress interface.I'm constantly manually tweaking file permissions every time I add a plugin.I'm having a nightmare setting up a decent environment for developing Wordpress on a local machine.
