Category: LAMP
-
Mail relay host in sendmail
I wanted sendmail on my Ubuntu server to relay all outgoing e-mails to one specific server, this is what i did. Install sendmail # sudo aptitude install sendmail -y Confiure sendmail # sudo nano /etc/mail/sendmail.cf Edit the “Smart” relay host. DSmyrelayserver.domain.com Restart sendmail # sudo /etc/init.d/sendmail restart
-
phpMyAdmin tracking problem
After installing phpMyAdmin 3.3.2deb1 on a Ubuntu 10.04 server with MySQL 5.1.41 I got this error massage when logging on to phpMyAdmin: The additional features for working with linked tables have been deactivated. To find out why click here. $cfg[‘Servers’][$i][‘tracking’] … not OK [ Documentation ] Tracking: Disabled I sloved this by editing /etc/phpmyadmin/config.inc.php and…
-
Import database larger then 2mb via phpMyAdmin
To import databases larger then 2MB you need to edit /etc/php5/<flavour>/php.ini. Edit the existing parameters in php.ini, if they does not exists add them at the end of the file: post_max_size = 50M upload_max_filesize = 50M Restart the webserver. If you are using Apache: sudo /etc/init.d/apache2 restart
-
www backup script
Here is a simple script that creates a RAR file of /var/www/ 1. Create a script folder. # sudo mkdir /script 2. Create a backup folder and a destnation folder for the www rar file. # sudo mkdir /backup /backup/www 3. Create a script file. # sudo nano /script/wwwbackup.sh Add the following: #!/bin/bash /usr/bin/rar a…
-
MySQL backup script
1. Create a script folder. # sudo mkdir /script 2. Create a backup folder and a destnation folder for the MySQL files. # sudo mkdir /backup /backup/mysql 3. Create a script file. # sudo nano /script/mysqlbackup.sh At the start of the file add: #!/bin/bash On the next row write your script. Here are a few…
-
Installing a LAMP-server (LinuxApacheMysqlPHP)
Here are som useful things to install and config when running a LAMP-server under Ubuntu JeOS. 1. Install Ubuntu JeOS. 2. Update aptitudes packetlist. # sudo aptitude update 3. Update/Upgrade the system. # sudo aptitude full-upgrade -y 4. If the kernel was updated, restart the system. # sudo reboot 5. Install SSH # sudo aptitude…
-
Virtual host config
Virtual hosts in Apache are the same thing as host headers in Windows IIS, allowing the admin to have multiple websites on one webserver with one IP-address. 1. Create a folder for the new virtual host. # sudo mkdir /var/www/www.mysite.com 2. Change owner on the virtual host folder. www-data is the same as IUSR under…