Apache
sudo apt-get install apache2 libapache2-mod-php5
a2enmod rewrite
thebugggenie
tar -xvzf v4.0.0.tar.gz
cd thebuggenie-4.0.0/
sudo mv * /var/www/html
sudo mkdir /var/www/html/files
sudo chown -R www-data:www-data /var/www/html
To enable .htaccess overrides, open this file
sudo nano /etc/apache2/sites-available/000-default.conf
Search for this line
DocumentRoot /var/www/html
And add these 3
<Directory "/var/www/html">
AllowOverride All
</Directory>
service apache2 restart
MySql
sudo apt-get install mysql-server
- Connect to mysql with mysql -u root -p
- Create the database with CREATE DATABASE thebuggenie;
- Create the user with CREATE USER thebuggenie@localhost IDENTIFIED BY 'password';
- Grant privileges with GRANT ALL ON thebuggenie.* TO thebuggenie;
- Flush privileges with FLUSH PRIVILEGES;
- Logout from root - quit
- Then test you can connect using mysql -u thebuggenie -p, and then enter the password. If you can connect successfully, then quit and continue
PHP
Composer and thebuggenie setup
curl -sS https://getcomposer.org/installer | php
php composer.phar install
Then access http://
nano /etc/php5/apache2/php.ini
add to end of file
extension=mysql.so
extension=imap.so
service apache2 restart
No comments:
Post a Comment