|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Nouveau Membre du Club
![]() Inscription : mai 2004 Messages : 105 ![]() |
Bonjour,
J'ai envie d'installer un serveur Web sur Linux mais j'avoue que mes connaissances sont globalement très limités. J'explique ma démarche : - J'ai tout d'abbord installé la version RedHat 9.0 de Linux. Il me semble pour que pour un serveur Web (Php), je dois installer tomcat et mysql. Je télécharge donc une version 5.0 de mysql sur : http://dev.mysql.com/downloads/mysql/5.0.html mais j'avoue qu'il y avait tellement de choix en fonction des plateforme de dev que j'ai plus ou moins pris un lien au hasard : j'ai télécharger dans la rubrique "Linux (non RPM package) downloads" le "Linux (x86, glibc-2.2, "standard" is static, gcc)" en standart. - Bim je l'ai mis dans le repertoire /usr/local/ Ensuite j'applique une procédure que j'ai trouvé sur internet : * tar zxvf mysql-standart-5.0.22-linux-i686.tar.gz (si j'ai bien compris je décompresse le fichier mais je ne sais pas ce que veut dire zxvf). * cd mysql-standart-5.0.22-linux-i686 (bon la j'ai compris) * ./configure -prefix=/usr/local/mysql (la je ne sais pas trop à quoi ça sert) bref j'ai le message : [[root@localhost mysql-standard-5.0.22-linux-i686]# ./configure -prefix=/usr/local/mysql NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it! To help you a bit, I am now going to create the needed MySQL databases and start the MySQL server for you. If you run into any trouble, please consult the MySQL manual, that you can find in the Docs directory. Installing all prepared tables Fill help tables To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: ./bin/mysqladmin -u root password 'new-password' ./bin/mysqladmin -u root -h localhost.localdomain password 'new-password' See the manual for more instructions. NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run the ./bin/mysql_fix_privilege_tables. Otherwise you will not be able to use the new GRANT command! You can start the MySQL daemon with: cd . ; ./bin/mysqld_safe & You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; perl run-all-tests Please report any problems with the ./bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com Starting the mysqld server. You can test that it is up and running with the command: ./bin/mysqladmin version [root@localhost mysql-standard-5.0.22-linux-i686]# chown: `mysql': invalid user Starting mysqld daemon with databases from /usr/local/mysql-standard-5.0.22-linux-i686/data STOPPING server from pid file /usr/local/mysql-standard-5.0.22-linux-i686/data/localhost.localdomain.pid 060713 12:12:31 mysqld ended ] J'avoue ne sais pas trop ce qu'il manigance, je fais comme si il ne c'étais rien passé. * Je tappe "make" (je pense que cette fonction sert a compiler mais quoi ?) et la j'ai un message d'erreur Je pense que je dois vous impressionner avec mes talents de linux. Mais j'ai vraiment besoin d'aide pour démarer. Un grand merci d'avance, FX |
|
|
00
|
|
|
#2 |
![]() ![]() Nicolas ValléeIngénieur Système Inscription : décembre 2005 Messages : 9 774 ![]() |
a priori, ce serait plutôt apache + php + mysql
ensuite, pourquoi redhat 9 ??? y a mieux en gratuit... et si tu ne veux pas jouer avec les makefile, regardes les rpm |
|
|
00
|
|
|
#3 |
|
Nouveau Membre du Club
![]() Inscription : mai 2004 Messages : 105 ![]() |
Merci pour ta réponse,
mais tu es sur qu'on ne peut pas installer mysql sans apache ni php, l'ordre apache,php, mysql est obligatoire ? RedHat 9 c'est la version 9.0 de Red Hat sorti l'année dernière je crois, il a quoi de mieux que le redhat 9.0 ? |
|
|
00
|
|
|
#4 | ||
![]() ![]() Nicolas ValléeIngénieur Système Inscription : décembre 2005 Messages : 9 774 ![]() |
Citation:
Citation:
Debian ou Gentoo... voire mieux un noyau BSD |
||
|
|
00
|
|
|
#5 | |
|
Membre actif
![]() Inscription : mai 2006 Messages : 161 ![]() |
Bonjour
Citation:
J'imagine quand même qu'il y a un système d'installation de paquetages assez performant pour installer tout ce que tu désires sans trop de casser la tête sous Redhat. |
|
|
|
00
|
|
|
#6 | |
|
Membre Expert
![]() Bidouille-tout Android Inscription : juillet 2006 Messages : 871 ![]() |
Citation:
__________________
C'est le signe d'un fou, qu'avoir honte d'apprendre Ubuntu 10.04 Lucid Lynx @home LE guide libre Linux & Ubuntu pour tous : Simple comme Ubuntu
|
|
|
|
00
|
|
|
#7 | |
![]() ![]() Nicolas ValléeIngénieur Système Inscription : décembre 2005 Messages : 9 774 ![]() |
Citation:
jamais dit le contraire... |
|
|
|
00
|
|
|
#8 |
|
Nouveau Membre du Club
![]() Inscription : mai 2004 Messages : 105 ![]() |
merci pour vos réponses, je vais voire ce que je peux faire
|
|
|
00
|
|
|
#9 |
|
Nouveau Membre du Club
![]() Inscription : mai 2004 Messages : 105 ![]() |
Je pense avoir réussi à installer mysql 5.
Maintenant j'ai de nouveau soucis avec l'installation d'apache : J'ai télécharger apache 2.2.2, je l'ai décompressé dans le repertoire usr/local/apache et quand je tape la commande suivante : ./configure --prefix=/usr/local/apache j'ai le message suivant : [root@localhost apache]# ./configure --prefix=/usr/local/apache checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... yes APR Version: 1.2.7 checking for chosen layout... apr checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr [root@localhost apache]# make make: *** No targets specified and no makefile found. Stop. [root@localhost apache]# ./configure --prefix=/usr/local/apache checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... yes APR Version: 1.2.7 checking for chosen layout... apr checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr Merci de votre aide, FX |
|
|
00
|
|
|
#10 | |
|
Membre Expert
![]() Consultant informatique Inscription : janvier 2006 Messages : 910 ![]() |
Citation:
__________________
Gentoo/FreeBSD l'amitié Linuxo-Unix |
|
|
|
00
|
|
|
#11 | |
|
Membre Expert
![]() Consultant informatique Inscription : janvier 2006 Messages : 910 ![]() |
Citation:
__________________
Gentoo/FreeBSD l'amitié Linuxo-Unix |
|
|
|
00
|
|
|
#12 | |
|
Nouveau Membre du Club
![]() Inscription : mai 2004 Messages : 105 ![]() |
Citation:
Ok, merci... Apparement wuand je tape whicc cc ou gcc a la racine, il me dit que j'ai pas le compilateur. J'ai peut être oublié de l'installer au démarrage. Je vais donc faire simple : déinstaller RedHat et installer Fedora.... On verra bien |
|
|
|
00
|
Copyright © 2000-2012 - www.developpez.com