After every linux installation, the first thing I always do is setup apache, mysql, and php. Under Ubuntu, if you take advantage of the synaptic package manager, setting up your LAMP server has never before been more simple.
First thing you want to do is update your repositories:
Next install apache2 and php5sudo apt-get install update
Finally install mysql and make it work with phpsudo apt-get install apache2 php5 libapache2-mod-php5
And thats it!sudo apt-get install mysql-server mysql-client php5-mysql
John I followed these instructions, and when I make test.php it asks me to download it, meaning the php isnt working correctly, does this work on ubuntu 8?
Checkout my new forum! http://adminreference.com/
You may have to enable the php load file:
Code:mv /etc/apache2/mods-available/php.load /etc/apache2/mods-enabled/
Do you have an entry similar to this in your httpd.conf:
You should also have the extension included in the same configuration file:Code:<Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 9524288 </Files> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
Code:LoadModule php5_module modules/libphp5.so
my answer is the solution - I fied it for him yesterday.![]()
What is in php.load?
When you use the method described above, all modules that are to be loaded are defined in their own file. The php.load file includes the stuff posted above. It's just rather than having it in the httpd.conf (apache2.conf) the apache configuration file has something like: LoadModule enabled-modules/*.load
Almost 1.5 years later and still valuable information, just used this tutorial today. I've also created some notes: Ubuntu 9.04 Notes. Remove Apache2 and other Startup Services: sudo apt-get install sysv-rc-conf sudo sysv-rc-conf Adding mod_userdir to Apache2: sudo a2enmod userdir sudo a2enmod userdir - ASCIIBin
The notes tell you how to disable Apache/MySQL from startup and how to enable mod_userdir so you can access your home directory public_html folder.
I generally start out with this method, but I find it too rigid (perhaps I don't know how to use it fully). I end up compiling apache/php from source.
When I searched for this tutorial I thought it was from source but I used it and it works fine for my intended purposes. I wanted to copy/paste your PHP options if it were from source. What happened to your LAMP shell script?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks