Mainos / Advertisement:

Ero sivun ”Drupal/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: Drupal)
 
(Ak: Uusi sivu: To import Google calendar.)
 
(14 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 1: Rivi 1:
 
<languages/>
 
<languages/>
=== Esivalmistelu ===
+
=== Preparations ===
  
Ensin meillä tulee olla LAMP
+
First we need to have a LAMP server
  
 
  aptitude install apache2 mysql-server
 
  aptitude install apache2 mysql-server
  
Asennetaan vielä jotain lisäpaketteja
+
We will still install some additional packages
  
 
  apt-get install php5 php5-mysql php5-gd libapache2-mod-php5
 
  apt-get install php5 php5-mysql php5-gd libapache2-mod-php5
  
Muokataan /etc/apache2/apache2.conf tiedostoa lisäämällä loppuun tekstiä
+
Modify the /etc/apache2/apache2.conf file by adding some text in the end
  
 
  nano /etc/apache2/apache2.conf
 
  nano /etc/apache2/apache2.conf
  
Lisätään loppuun tällainen funktio:
+
Add this function to the end:
AddType application/x-httpd-php .html
+
  AddType application/x-httpd-php .html
  
 
=== MySQL ===
 
=== MySQL ===
  
Nyt pistetään mysql kuntoon.
+
Now we will set up MySQL.
  
 
  mysql_install_db
 
  mysql_install_db
Rivi 35: Rivi 35:
 
  GRANT ALL PRIVILEGES ON drupal.* TO drupaluser@localhost IDENTIFIED BY 'password
 
  GRANT ALL PRIVILEGES ON drupal.* TO drupaluser@localhost IDENTIFIED BY 'password
  
Ainakaan minulla drupaluser ei saanut kunnolla käyttöoikeuksia, niin kävin phpmyadminilla laittamassa ne. Jos sinulla käy samoin niin asenna phpmyadmin ja käy laittamassa sieltä.
+
At least for me drupaluser did not get proper elevation and rights, so I used phpmyadmin to set them. If you have the same problem then install phpmyadmin and set them there.
  
 
=== Drupal ===
 
=== Drupal ===
  
Vähän oikeuksia kuntoon
+
Fixing some privileges
  
 
  cd /var/www
 
  cd /var/www
 
  chmod a+w drupal-7.22/sites/default/
 
  chmod a+w drupal-7.22/sites/default/
  
Tehdään asetustiedostosta kopio
+
We make a copy of the settings file
  
 
  cd drupal-7.22/sites/default/
 
  cd drupal-7.22/sites/default/
 
  cp default.settings.php settings.php
 
  cp default.settings.php settings.php
  
Oikeuksia taas
+
Again privileges...
  
 
  chmod a+w settings.php
 
  chmod a+w settings.php
  
Tehdään uusi kansio ja oikeudet kuntoon
+
Make a new directory and fix privileges
  
 
  mkdir files
 
  mkdir files
 
  chmod a+w files
 
  chmod a+w files
  
Nyt voi avata selaimessa
+
You can now open it in your browser
  
  
Sen jälkeen vielä
+
And to top it all off
  
 
  chmod go-w settings.php
 
  chmod go-w settings.php
Rivi 67: Rivi 67:
  
  
=== Hyviä linkkejä ===
+
=== Good links ===
  
 
http://websmiths.co/blog/drupal-7-feeds-tutorials-importing-ical
 
http://websmiths.co/blog/drupal-7-feeds-tutorials-importing-ical
  
Google kalenterin importtaamiseen.
+
To import Google calendar.

Nykyinen versio 11. helmikuuta 2015 kello 09.48

Muut kielet:
English • ‎suomi

Preparations

First we need to have a LAMP server

aptitude install apache2 mysql-server

We will still install some additional packages

apt-get install php5 php5-mysql php5-gd libapache2-mod-php5

Modify the /etc/apache2/apache2.conf file by adding some text in the end

nano /etc/apache2/apache2.conf

Add this function to the end:

  AddType application/x-httpd-php .html

MySQL

Now we will set up MySQL.

mysql_install_db
mysql_secure_installation
mysql -u root -p
CREATE DATABASE drupal;
CREATE USER drupaluser@localhost;
SET PASSWORD FOR drupaluser@localhost= PASSWORD('typepasswordhere');
GRANT ALL PRIVILEGES ON drupal.* TO drupaluser@localhost IDENTIFIED BY 'password

At least for me drupaluser did not get proper elevation and rights, so I used phpmyadmin to set them. If you have the same problem then install phpmyadmin and set them there.

Drupal

Fixing some privileges

cd /var/www
chmod a+w drupal-7.22/sites/default/

We make a copy of the settings file

cd drupal-7.22/sites/default/
cp default.settings.php settings.php

Again privileges...

chmod a+w settings.php

Make a new directory and fix privileges

mkdir files
chmod a+w files

You can now open it in your browser


And to top it all off

chmod go-w settings.php
chmod 757 files


Good links

http://websmiths.co/blog/drupal-7-feeds-tutorials-importing-ical

To import Google calendar.

Mainos / Advertisement: