Razvoj IRazvoj Internet Aplikacija Na Lamp Platforminternet Aplikacija Na Lamp Platformi

download Razvoj IRazvoj Internet Aplikacija Na Lamp Platforminternet Aplikacija Na Lamp Platformi

of 27

description

Razvoj Internet Aplikacija Na Lamp Platformi

Transcript of Razvoj IRazvoj Internet Aplikacija Na Lamp Platforminternet Aplikacija Na Lamp Platformi

  • ..

    LAMP

    , 2013. .

    : : , .. , ..

  • :

    1. ........................................................................................................................................... 1

    2. ....................................................................................................................... 2

    3. LAMP- ....................... 3

    3.1. LINUX................................................................................................................................... 4

    3.1.1. Apache ........................................................................................................................... 4

    3.1.2. PHP (PHP: Hypertext Preprocessor).............................................................................. 4

    3.2. LAMP-..................................................................... 5

    3.2.1. Apache2 ................................................................................................... 5

    3.2.2. MySQL5......................................................................................................................... 6

    3.2.3. PHP5 .............................................................................................................................. 6

    3.2.4. .......................................................................................... 7

    3.2.5. PhpMyAdmin .......................................................................................... 8

    3.2.6. MySQL bind ............................................................................... 8

    3.2.7. SCP ............................................................................................................... 9

    3.2.8. Apache Ubuntu Serveru.............................................................. 10

    4.

    .................................................................................................................. 11

    4.1. ..................................................................................................... 11

    4.1.1. ............................................................................... 11

    4.1.2. .............................................................. 11

    4.1.3. ................................................ 11

    4.1.4. ................................................................................. 13

    4.1.5. ....................................................................................... 14

    4.1.6. ( ) .......................................... 15

    4.1.7. ................................................................................ 16

    4.1.8. ....................................................................................... 17

    4.1.9. ........................................................................................ 17

    4.1.10. ................................................................................. 18

    4.1.11. Model baze podataka ................................................................................................ 19

    4.2. ...................................................................................................... 19

    5. .............................................................................................................................. 24

    6. .......................................................................................................................... 25

  • 1

    1.

    ,

    .

    .

    .

    .

    ,

    .

    .

    .

    .

    e-mail

    .

    , , ,

    .

    :

    1.

    ( ),

    2. online ,

    3. .

    ,

    .

    .

    . ,

    , .

    .

    .

  • 2

    2.

    .

    .

    , e-mail .

    . ,

    .

    , ,

    , - , , e-

    mailova ,

    ,

    . .

    , .

    , .

    . ,

    , .

    ,

    .

    , ,

    , , ,

    ,

    .

  • 3

    3. LAMP-

    LAMP

    : L- Linux , A- Apache , M- MySQL

    P- PHP, a Pearl Python.

    .

    LAMP- , , open

    source , ,

    , ,

    (Windows, Linux..). 1.

    LAMP ASP.NET J2EE

    Windows

    ,

    ,

    ,

    ,

    :

    : point and click

    , point and click

  • 4

    ,

    -

    -

    -

    1. LAMP, ASP.NET J2EE

    3.1. LINUX

    Linux , UNIX . Linux

    Linuxa,

    GNU x.

    Linux

    . ,

    300 . ,

    ( ), ( )

    .

    3.1.1. Apache

    Apache ( open-source

    , UNIX-

    Linux, Windows)

    open-source.

    Netcrafta 2005. , 75 , 52

    Apache -, 2006. 60 (60,32%)

    .

    3.1.2. PHP (PHP: Hypertext Preprocessor)

    PHP

    , . HTML . PHP-a

    HTML ,

    . PHP

    , HTML .

  • 5

    C, .

    . PHP 1995.

    PHP/FI. ,

    ,

    .

    PHP (open-source),

    .

    PHP

    . C .

    3.2. LAMP-

    Apache2, MySQL, PHP (LAMP) na Ubuntu Server 11.10

    3.2.1. Apache2

    :

    apt-get install apache2

    Apache .

    IP Apache.

    1.

    1. Apache

    Ubuntu-u root /var/www,

    /etc/apache2.conf.

    /etc/apache2, /etc/apache2/mods-enabled (Apache ),

    /etc/apache/sites-enabled ( ) i /etc/apache2/conf.d.

  • 6

    3.2.2. MySQL5

    :

    apt-get install mysql-server mysql-client

    "root" ( 2.),

    2. MySQL5

    .

    3.2.3. PHP5

    sudo apt-get install php5 libapache2-mod-php5

    .

    Apache:

    sudo /etc/init.d/apache2 restart

    PHP e PHP (.test.php)

    :

    ,

    /var/www.

    , (permissions):

    sudo chmod a+rwx /var/www

  • 7

    test.php :

    cat > test.php

    ( test.php /var/www/test.php ). ,

    .

    sudo nano test.php

    "IPadresa/test.php" ip

    LAMP. PHP-

    3.:

    3.

    3.2.4.

    php-mysql MySQL

    PHP-a. : php5-curl, php5-gd, php5-idn, php-pear, php5-

    imagick, php5-imap, php5-mcrypt, php5-memcache, php5-ming, php5-ps, php5-pspell, php5-

    recode, php5-snmp, php5-sqlite, php5-tidy, php5-xmlrpc, php5-xsl.

    sudo apt-get install ime_modula ime_drugog_modula ...

    apache .

    sudo /etc/init.d/apache2 restart

  • 8

    3.2.5. PhpMyAdmin

    PhpMyAdmin PHP, namjenjen za upravljanje i

    administraciju MySQL -. MySQL

    . (

    , , , , , ,

    ...), SQL

    .

    sudo apt-get install phpmyadmin

    "Web server to reconfigure automaticly:" Apache, "Configure

    database for phpmyadmin with dbconfig -common" No.

    :

    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

    sudo /etc/init.d/apache2 reload

    PhpMyAdmin-u http://ipadresa/phpmyadmin.

    3.2.6. MySQL bind

    bind . :

    sudo nano /etc/mysql/my.cnf

    bind-adress = localhost localhost ip .

    MySQL root :

    mysql u root -p

    :

    mysql> /q

  • 9

    3.2.7. SCP

    SCP loalhosta remotehosta

    remotehosta . SCP ,

    WinSCP . Ubuntu Server

    4., hostname, Username i Password .

    Login "Continute connecting and add host key to the

    cache?" "Yes". (drag and drop).

    4. WinSCP Ubuntu Server

    Linux- Ubuntu Server, Linuxu

    cd

    (. najnovije.html

    /website/vijesti/najnovije.html, :

    cd /webiste/vijesti

    Enter). scp.

    scp r najnovije.html [email protected]:files/web/vijesti

    "korisnik" (user) "ubuntuserver.mojserver.net", a

    najnovije.html /web/vijesti Ubuntu Serveru.

  • 10

    3.2.8. Apache Ubuntu Serveru

    / /var/www/ index.html

    www .

    . . /var/www/nas_sajt.com/.

    "ime.sajta" /etc/apache2/sites-available

    default :

    ServerAdmin [email protected]

    ServerName na_sajt.com

    DocumentRoot (. var/ww/nas_sajt.com).

    .

    sites-available sites-enabled

    ( -available -enabled).

    : (enable)

    a2ensite nas_sajt.com

    (disable) :

    a2dissite nas_sajt.com

    Apache:

    /etc/init.d/apache2 restart

    /etc/init.d/apache2 reload

    apacha: NameVirtualHost *:80 has no

    VitualHost, NameVirtualHost*

    ime.sajta sites-available,

    etc/apache2/ports.conf.

    ( xp: c:/windows/system32/drivers/etc/hosts")

    IPadresa ubuntu servera nas_sajt.com

    hosts

    nas_sajt.com.

    : Ubuntu Server Windowsa je case-sensitive,

    PHP

    .

  • 11

    4.

    4.1.

    4.1.1.

    ,

    .

    , - .

    4.1.2.

    : , Carmeuse-

    ,

    , KGHM,

    .

    4.1.3.

    www.riteugljevik.com

    Carmeuse-

    www.carmeuse.com

    KGHM-

    www.kghm.pl

    Prepage

    Frames

    TITLE A,

    title,

    (Save)

    ,

    title,

    (Save)

    Welcome line

  • 12

    E

    ()

    ID paragraph

    ID image

    Navigation

    Links ,

    ,

    ,

    Sitemap

    ,

    ,

    LSE

    ,

    ,

    Postal address

    Phone, FAX

    E-mail address ,

    ,

    ,

    Web address ,

    ,

    ,

    Contact form

    Graphics ,

    ,

    ,

    ,

    ,

    ,

    Text only

    Call for action

    MWR -mailom

    Backup response -mailom

    -mailom

    Sells online

  • 13

    Products page

    ,

    Services page

    Profile page

    News ,

    ,

    ,

    ,

    Impression and online

    image

    .

    ,

    .

    ,

    ,

    , .

    ,

    ,

    ,

    .

    FAQ

    E-magazine

    Recruit, Employ

    Forum

    4.1.4.

    -

    .

    ,

    e-maila . ,

    . E-mail, .

    , , ,

    , .

  • 14

    :

    , ,

    , ,

    2007. .

    Carmeuse- ,

    . , , About Us (

    ), .

    , ,

    . , ,

    . .

    . , ,

    .

    , Carmeuse

    , - .

    ,

    . .

    e-mail, . ,

    , .

    , ,

    .

    .

    KGHM-

    . ,

    ( ).

    e-mail.

    , KGHM

    . ,

    .

    4.1.5.

    1. : ? : . 2. : ? :

    , - .

    3. ? : Carmeuse , , , .

    4. ? : , , , .

  • 15

    4.1.6. ( )

    4.1.6.1.

    , (business core) ( ) Back-office

    4.1.6.2.

    :

    ( )

    , ,

    ,

    4.1.6.3.

    3 :

    - , , (, , , , ), , ( )

    , , , , , ( )

    - , , , , , , ( ).

  • 16

    4.1.7.

    1. -

    .

    URL .

    , ,

    . ,

    : , , , , .

    ,

    . ,

    .

    e-mail .

    .

    .

    2. -

    .

    URL .

    ,

    ,

    .

    .

    .

    , (bookmark)

    . ,

    ,

    ,

    ( ).

    ,

    .

    .

    e-mail

    .

    .

    3. -

    .

    Google URL

    .

    : , ,

  • 17

    , , , , .

    , , ,

    , , .

    , Favorites .

    4.1.8.

    :

    : ()

    4.1.9.

    5.

  • 18

    4.1.10.

    6.

    ,

    customer centric

    ,

    , .

    , , .

  • 19

    4.1.11. Model baze podataka

    7.

    4.2.

    ( 8.).

    .

    ( , ...).

    .

    .

    , (),

    , . .

    , , .

    , - " ",

    proizvod.php. ,

    .

    .

    . ,

    , / .

  • 20

    Slika 8. Katalog

    ,

    . ( 9.) ,

    ,

    .

    , "

    ". :

    narudzba.php.

    .

  • 21

    Slika 9. Korpa

    Narudzba.php ( 10.) ,

    . ,

    , . ,

    e-mail ( 11.) .

    e-mail , MySQL

    .

  • 22

    Slika 10. Narudba

    Slika 11.E-mail

  • 23

    ( 12.) :

    , IP , ( ,

    ), .

    Slika 12. Tabele

  • 24

    5.

    . .

    , , , ,

    , . ,

    .

    . .

    .

    . :

    , . ,

    - ,

    . (Facebook, Twitter...),

    , (PayPal),

    - , .

  • 25

    6.

    1. mr Zoran Dragievi (2008.) - Pristupni rad - Internet tehnologije u poslovanju

    2. mr Zoran Dragievi (2007.) - Pristupni rad - Razvoj internet aplikacija verzija

    3. Luke Welling, Laura Thomson (2009.) PHP and MySQL Web development 4th edition

    4. Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz,

    Jason Gerner (2004) PHP, Apache, MySQL Web Develompment

    5. en.wikipedia.org/wiki/LAMP_(software_bundle)

    6. http://php.net/

    7. http://www.apache.org/