Setup Ubuntu as a Web Server
So these are the general steps for setting up a web server (Apache, MySQL and PHP) on a Ubuntu server. If you are not sure on how to use unix command line see: http://www.leonardaustin.com/technical/ssh-commands
Install Apache MySQL and PHP
sudo tasksel install lamp-server sudo /usr/sbin/apache2ctl restart
Install mod_rewrite
sudo a2enmod rewrite sudo /usr/sbin/apache2ctl restart
You also need to find this file:
/etc/apache2/sites-available/default
and change “AllowOverride None” to “AllowOverride All” it appears a couple of times.
Install PHPMyAdmin
sudo apt-get install phpmyadmin
“In /etc/apache2/apache2.conf” Add “Include /etc/phpmyadmin/apache.conf”
The restart apache
sudo /usr/sbin/apache2ctl restart
Install XBedug – Optional for DEV only
sudo apt-get install php5-dev php-pear sudo pecl install xdebug
# Make a note of the location of the xedebug.so then create a xdebug.ini with the below info and put it into “/etc/php5/conf.d”
; xdebug debugger zend_extension="/usr/lib/php5/20060613/xdebug.so" # IN php.ini file make sure html_errors = true sudo /etc/init.d/apache2 restart
PHP Important Folder and Files
# /etc/php5 # /etc/php5/apache2/php.ini
Apache Important Folder and Files
# /etc/apache2/ # /etc/apache2/apache2.conf # /etc/apache2/sites-available/default
Web Folder
# /var/www
Other Steps
Change php.ini errors to show all
Related posts:
Recent Posts
- Diary of a Startup: I’ve Just Applied to Seedcamp
- Diary of a Startup: Create a startup for £14
- Sendmail on Ubuntu
- Adobe Air with Netbeans
- Best Firefox Plugins for SEO aka Addons
- Setup Ubuntu as a Web Server
- Changing Plesk Fast CGI to Apache PHP with ZF
- How to Access PUT data in Zend Framework
- 30 minutes until 30!
- Google Analytics Benchmarking Newsletter July 2011
My External Links
Twitter Updates
- Just signed up to http://t.co/tfBBKAAS use my referral code to get 10% off. 41pqp3q1 (http://t.co/TJUdYIv8) 1 day ago
- Anyone using http://t.co/gvbvZgN5 and want to tweet me your Referral Code? 1 day ago
- RT @TheAdventurists: #IceRun team Ice Ice Maybe drive into a ditch on Russian TV: http://t.co/0E2AWsGg #FB 5 days ago
- 10 Things Bosses Never Tell Employees -- But Maybe Should http://t.co/v4JNYpEg 5 days ago
- RT @guardian on the return of Myspace: http://t.co/84KLw8xn 1 week ago
- My First Ice Hockey Match In The Cheap Seats http://t.co/fMMH7Oan 1 week ago
- I'm at Wetherspoons http://t.co/ko7GIh75 1 week ago
- I'm at The Lansdowne (123 London Rd, Leicester) http://t.co/ieW5KFVk 1 week ago
- I'm at Barceloneta http://t.co/ByUieJvb 1 week ago
- 57% of my followers are from #UK,17% from #USA & 18% from #Leeds. http://t.co/TZmZfcgq. What's your #TweepsMap? 1 week ago




