From The Blog

PHP - Ubuntu: supported locales

26 November 2013, in

1. First of all list supported locales:

cat /usr/share/i18n/SUPPORTED

2. Copy the locales for your region. I will copy the following lines:

sv_SE.UTF-8 UTF-8

sv_SE ISO-8859-1

3. Edit the list of 'supported locales' and paste your locales that you've copied. (See step above)

gedit /var/lib/locales/supported.d/local

 



Post a Comment

Ubuntu: How to check installation is either 32 bit or 64 bit

27 November 2012, in

How to check installation is either 32 bit or 64 bit ?

you can simply type in terminal:

getconf LONG_BIT

It should result 32 or 64



Post a Comment

Easy restart apache server

15 August 2012, in

$ service apache2 restart



Post a Comment

How to start/stop/restart Apache service

15 August 2012, in

Task: Start Apache 2 Server

# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start

Task: Restart Apache 2 Server

# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart

Task: Stop Apache 2 Server

# /etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop



Post a Comment

fast way to enable the mod_rewrite apache module on ubuntu

15 August 2012, in

just the command:

sudo a2enmod rewrite



Post a Comment

Installing PHP5 and Apache on Ubuntu

20 June 2012, in

First, you'll want to add the extra repositories to Ubuntu's sources.list file.

From a command shell, you will run the following commands:

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart



Post a Comment

Adding extra Repositories on Ubuntu

20 June 2012, in

Repositories on Ubuntu are the locations that you can download software from. As a general rule, the default repositories don't contain the right locations for most software packages that you'll want to install. You will want to open up the /etc/apt/sources.list file, find and uncomment the following lines

deb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe

deb http://security.ubuntu.com/ubuntu dapper-security universe



Post a Comment

install mysql server 5 on ubuntu

20 June 2012, in

Open a terminal window, and use the following command:

sudo apt-get install mysql-server

If you are running PHP you will also need to install the php module for mysql 5:

sudo apt-get install php5-mysql

To create a new database, use the mysqladmin command:

mysqladmin create <databasename>



Post a Comment