← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #75808]: Help! hard to install LAMP in ubuntu 32 bit

 

Question #75808 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/75808

benny posted a new comment:
Resume:

Install Apache
sudo apt-get install apache2

Install PHP. Restart Apache
sudo apt-get install php5
sudo /etc/init.d/apache2 restart

Install MySQL
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql

PhpMyAdmin
sudo apt-get install phpmyadmin

You’ll be asked to provide passwords on the MySQL and PhpMyAdmin
installations. There are a couple of minor tweaks you have to do to make
sure the applications are working properly. First, make sure the MySQL
extension is set in PHP. Restart Apache again after you make your
changes.

MySQL Extension. Restart Apache
sudo vi /etc/php5/apache2/php.ini
extension=mysql.so
sudo /etc/init.d/apache2 restart

Now, open your Firefox browser, and type `localhost` in the address bar.
If you see “It Works!,” that means the installation was successful. One
final thing before you go, I installed WordPress and the installation
was a success, except for the mod_rewrite which wasn’t working if you
try to use the permalinks feature. To make the permalinks feature work,
first you’ll need to create a .htaccess file and make it writable. Next,
turn on mod_rewrite module.

Mod Rewrite
cd /var/www/
touch .htaccess
chmod 777 .htaccess
sudo a2enmod rewrite

Lastly, make sure AllowOverride is set to All. Edit the file:

sudo vi /etc/apache2/sites-available/default

Allow Override
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

Restart Apache
sudo /etc/init.d/apache2 restart

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.