Register | Log in | RSS channel for codegravity.com homepage Bookmark!

284/2NEW projects | 71 services | 215 websites | 834/3NEW freelancers | 2126 topics | advertise



Login:



Forgot your password?
Forgot your username?
Create an account
JoomlaWatch Agent

Users

Most active users today from total of 108:
garikello, Peerke, jakkrit, dayanand, andrew_saber, giakhanh, mohalb, carmachhh, fguyon, dfireablaze, boho, phoeker, ozedfr, ashish_php, amoluca, blackie, JDev, tinytim007, Pascale, besoil


19.9%United States United States
17.9%India India
9.3%Germany Germany
5.5%Russian Federation Russian Federation
4.4%United Kingdom United Kingdom
4.3%France France
4%Australia Australia
3.8%Netherlands Netherlands
3.8%Poland Poland
3.7%Italy Italy

Today: 953
Yesterday: 1402
This Week: 5243
Last Week: 8869
This Month: 2355
Last Month: 37593
Total: 117035


Partners:

HTML5, CSS3, SVG, tutorials

Freelance ColdFusion, Flex, PHP

Olejomalby, abstraktne obrazy

Camping Europe

WinAsm Studio

Vyšné Ružbachy

Sochy, Reštaurovanie

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:

Statistics:
Search Engine Genie Promotion Widget
Home

Inštalácia Apache+PHP+MySQL (platforma Linux)

Jeden z mnohých spôsobov ako uvies? danú trojkombináciu do ?innosti

Co vsetko potrebujeme na instalaciu ?

balik databazy MySQL: mysql-3.22.32.tar.gz (zdrojove texty) balik PHP verzie >= 4 : php-4.0rc1.tar.gz (zdrojove texty) balik webserveru Apache : apache_1.3.12.tar.gz (zdrojove texty)

Priprava

(ked pisete prikazy, vynechajte '#' alebo '$' - to je iba znak ze sa jedna o prikazovy riadok) $ su - zmenime sa na uzivatela root, ak nim este nie sme # mkdir /install - vytvorime v korenovom adresari adresar /intall * do adresara presunieme vsetky potrebne instalacne baliky # cd /install # tar xfz mysql-3.22.32.tar.gz - rozbalime zdrojaky databazy MySQL # tar xfz apache_1.3.12.tar.gz # tar xfz php-4.0rc1.tar.gz

Instalacia databazy MySQL

# cd mysql-3.22.32 - prejdeme do adresara mysql # mkdir /var/mysql/ - vytvorime priecinok, kde bude databaza ulozena # mkdir /var/mysql/3.22.32/ # ./configure --prefix=/usr/local/mysql/3.22.32 --localstatedir=/var/mysql/3.22.32 - spustime konfiguracny script # make - spustime kompilaciu # make install - a nasledne nainstalujeme # scripts/mysql_install_db - inicializujeme MySQL databazu # /usr/local/mysql/3.22.32/bin/safe_mysqld & - spustime mysql demona # cp support-files/mysql.server /etc/rc.d/init.d/mysql - zabezpeci, aby sa spustalo po starte # chmod 744 /etc/rc.d/init.d/mysql # ln -s /usr/local/mysql/3.22.32/bin/mysql /usr/bin/mysql - vytvorime symbolicky link pre lepsiu dostupnost # setup * zvolime System Services * zastkrnutneme mysql * quit - to zabezpeci spustanie pri kazdom starte # /usr/local/mysql/3.22.32/bin/mysqladmin -u root password VASE_HESLO - inicializujeme databazu # /usr/local/mysql/3.22.32/bin/mysql mysql -uroot -pVASE_HESLO - a vyskusame ci funguje # mysql> show databases; +------------------+ | Tables in mysql | +------------------+ | mysql | | test | +------------------+ #mysql> exit

Instalacia serveru Apache a PHP


# mkdir /www # cd ../apache_1.3.12 # ./configure --prefix=/www # cd ../php-4.0RC1/ # ./configure --with-apache=../apache_1.3.12 --with-mysql=/usr/local/mysql/3.22.32 --enable-sysvshm=yes --enable-sysvsem=yes --with-config-file-path=/www/conf --enable-track-vars=yes --enable-url-includes # make - zkompilujeme # make install - nainstalujeme # cd ../apache_1.3.12 # ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a --enable-module=php4 --enable-module=log_referer --enable-module=log_agent # make # make install # ln -s /www/bin/apachectl /etc/rc.d/init.d/apache # cp ../php-4.0RC1/php.ini-dist /www/conf/php.ini - prekopirujeme standardny PHP konfiguracny subor * editujeme /www/conf/http.conf, najdeme riadok obsahujuci: '#ServerName localhost.localdomain' * vymazeme '#' teda ostane tam iba 'ServerName localhost' * najdeme dalej slovo 'DirectoryIndex', ktory obsahuje taketo nieco: DirectoryIndex index.html * zmenime ho na: DirectoryIndex index.html index.php index.php3 index.html index.htm * Najdeme 'AddType' a pridame: AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php .phtml * vytvorime subor /www/htdocs/test.php * do ktoreho napiseme: # /etc/rc.d/init.d/apache start - spustime apache * zeditujeme /etc/rc.d/local.rc , na koniec pridame predchadzajuci riadok, zabezpeci to spustanie pri kazdom starte * skusime to teraz odtestovat, do prehliadaca napiseme: http://localhost/test.php * objavi sa fialova stranka s parametrami PHP * gratulujem, uspesne ste to zvladli !

Zaver

Tato instalacia je dost zlozita, no ked budete dodrziavat vsetky kroky, vsetko by malo prebehnut ok. Ak vam nieco nefunguje, najprv skontrolujte ci ste nieco nepreskocili. Az potom piste maily ;)) Adresare ktore su hore spomenute, mozu byt v skutocnosti ine, zavisi od balika, preto nazov adresara vzdy nahradte tym spravnym. Prajem vela zdaru! matto
 

Add comment


Security code
Refresh

No Tweets

Add URL of a programming website
register as a freelancer
submit your project
open freelance projects you can work on
webmaster resources
write paid blog posts about programming - tips and articles
bugs and features

Recommended: (advertise)
Download Joomlawatch 1.2.12



Freelancers, create paid articles
-
Looking for freelancers with experiences in Java to write paid articles on their experiences


Advertise Here
-
Promote your services and get the new customers from the community of webmasters / programmers visiting CodeGravity.com

Green Geeks Hosting -
World's best selling green web hosting

Register as a Freelancer -
Submit your project experiences, programming languages and your other skills

HostMonster.com -
best cheap Joomla Web hosting. Website joomlawatchdemo.com is hosted by them with domain for $6,95/mo.

FastDomain.com -
Fast Domain hosting. Hostmonster alternative. Also for $6.95/month.


Outsource your project
-
Submit your project description with all the requirements to more than 600 freelancers from around the world for FREE.



News from Twitter:
No Tweets
RSS Feeds:new

rss Freelance
rss Projects
rss Forum
rss Resources

Popular:
MathGuard
download mathguard
Random screenshot:

linoopz15.jpg


Poll

At what price would you purchase JoomlaWatch ad-free license?
 
Privacy policy | Advertise | Donate | Doucovanie Nemcina
Joomla Visitors Google Map
Loading map...
Joomla Visitors Google Map
Visitors Google Map Agent

Locations of visitors to this page


©2003-2010 Codegravity.com