Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 Installation de serveur Web dans FreeBSD 6.0 avec Apache 2.2, MySQL 5.0 et PHP 5 - Partie 3

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Installer Apache 2.2, MySQL 5 et PHP 5 dans FreeBSD 6.0 pour un serveur Web fiable

Part 3 - Installing MySQL Server 5 with FreeBSD Ports Collection Partie 3 - Installation du serveur MySQL 5 avec les ports FreeBSD Collection

  1. Login to the FreeBSD system as root, or su - root to get to super user environment. Connectez-vous au système FreeBSD en tant que root, ou su - root pour obtenir de super environnement de l'utilisateur.
  2. Enter the following commands at FreeBSD command line interface (CLI) (Wait till each command to finish processing before running the next command): Entrez les commandes suivantes à FreeBSD interface de ligne de commande (CLI) (Attendez que chaque commande pour terminer le traitement avant d'exécuter la commande suivante):

    cd /usr/ports/databases/mysql50-server cd / usr/ports/databases/mysql50-server
    make install clean make install clean
    mysql_install_db --user=mysql mysql_install_db - user = mysql
    chown -R mysql /var/db/mysql/ chown-R mysql / var / db / mysql /
    chgrp -R mysql /var/db/mysql/ chgrp-R mysql / var / db / mysql /
    /usr/local/bin/mysqld_safe -user=mysql & / usr / local / bin / mysqld_safe-user = mysql &

    Note: If you encounter Command not found error, use command rehash to update OS path environment variables. Note: Si vous rencontrez command not found erreur, utiliser la commande rehash OS pour mettre à jour les variables d'environnement PATH.

  3. The port installation will put a script file mysql-server.sh in /usr/local/etc/rc.d which will has capability to start MySQL server. L'installation portuaire sera mis un fichier de script mysql-server.sh dans / usr / local / etc / rc.d qui a la capacité de démarrer le serveur MySQL. To enable MySQL server to start automatically after every FreeBSD server reboot, enter the following command in CLI: Afin de permettre à un serveur MySQL démarre automatiquement après chaque redémarrage du serveur FreeBSD, entrez la commande suivante dans CLI:

    echo ‘mysql_enable=”YES”‘ >> /etc/ rc.conf echo 'mysql_enable = "YES"'>> / etc / rc.conf

  4. By default, MySQL default super user account - root - has no password (blank password). Par défaut, MySQL par défaut compte super-utilisateur - racine - n'a pas de mot de passe (mot de passe vide). So it’s important to assign the administrator account password. Il est donc important d'attribuer le mot de passe du compte administrateur. To change the password to root user, enter the following command: Pour modifier le mot de passe pour l'utilisateur root, entrez la commande suivante:

    mysqladmin -u root password newpassword mysqladmin-u root mot de passe newpassword

    Replace newpassword with your own desired password. Remplacer newpassword avec votre propre mot de passe désiré.

  5. Optionally, copy either my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf (depending on the usage and utilization of MySQL server) as my.cnf to /var/db/mysql which will enable you to tweak and change the configuration of server-specific MySQL server options by editing the file. En option, soit ma copie-huge.cnf, mon-large.cnf, mon-medim.cnf, small.cnf ma-ma-ou-innodb 4G.cnf-lourds (en fonction de l'usage et l'exploitation du serveur MySQL) mon . cnf dans / var / db / mysql qui vous permettra d'ajuster et de modifier la configuration de serveur spécifique les options du serveur MySQL en éditant le fichier.
  6. MySQL 5.0 installation done. MySQL 5.0 fait l'installation.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANT: Il s'agit d'une machine qui traduit la page est fourni "tel quel" sans garantie. Machine translation may be difficult to understand. La traduction automatique mai être difficile à comprendre. Please refer to S'il vous plaît se référer à original English article article original en anglais whenever possible. chaque fois que possible.

Share and contribute or get technical support and help at Partager et de contribuer ou obtenir un appui technique et aider à My Digital Life Forums Ma vie numérique forums .



22 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3” 22 réponses à "Installation de serveur Web dans FreeBSD 6.0 avec Apache 2.2, MySQL 5.0 et PHP 5 - Partie 3"

  1. Drache
    May 21st, 2006 13:12 21 mai 2006 13:12
    1

    mysql_enable = mysql_enable =

  2. Administrator Administrateur
    May 21st, 2006 14:07 21 mai 2006 14:07
    2

    Thanks for pointing out, will update. Merci d'avoir souligné, sera mise à jour.

  3. jan janvier
    June 6th, 2006 11:08 6 juin 2006 11:08
    3

    i’m stucked with the mysql part of your howto, after issuing # mysqladmin -u root password newpassword, i issued # mysql -u root -p newpassword, i always get the access denied error. Je suis stucked mysql avec la partie de votre guide, après avoir délivré # mysqladmin-u root newpassword mot de passe, j'ai publié # mysql-u root-p newpassword, j'ai toujours obtenir l'accès est refusé erreur. what did i miss? Qu'est-ce que j'ai manquer?

    thanks merci

  4. Administrator Administrateur
    June 6th, 2006 11:49 6 juin 2006 11:49
    4

    jan, may be you have set the password for root. Jan, mai être que vous avez défini le mot de passe de root. Try to access mysql with -u userid and -p password option. Essayez d'accéder à mysql-u nom d'utilisateur et mot de passe-p option. Or you can follow instruction Ou vous pouvez suivre l'instruction here ici on how to change and reset your root password. sur la façon de modifier et de réinitialiser votre mot de passe root.

  5. jan janvier
    June 6th, 2006 14:32 6 juin 2006 14h32
    5

    i’ve tried all the options mentioned but none of them worked, so i did a fresh install again, before creating a password for mysql root user, i logged in as root and it worked fine, i was able to get a mysql shell but when i issue the command mysqladmin to create a password for root, i got an error, i tried to log in as root and wtf i’m back with the same problem. J'ai essayé toutes les options mentionnées, mais aucune d'entre elles travaillent, de sorte que je n'ai une nouvelle installation de nouveau, avant de créer un mot de passe pour l'utilisateur root mysql, j'ai connecté en tant que root et tout fonctionnait bien, j'ai pu obtenir un shell mais mysql quand je la commande mysqladmin pour créer un mot de passe pour root, j'ai eu une erreur, j'ai essayé de vous connecter en tant que root et wtf je suis de retour avec le même problème. do u think i would be better off if i install phpmyadmin and change the root password from there? u ne pense que je serais mieux si je installer phpmyadmin et de changer le mot de passe root à partir de là?

  6. Administrator Administrateur
    June 6th, 2006 16:56 6 juin 2006 16h56
    6

    Did you flush privileges after changing the password? Avez-vous rincer les privilèges après avoir changé de mot de passe? The problem may be due to hashing of MySQL password. Le problème de mai en raison de hachage de mot de passe de MySQL. May be you can try the following commands after resetting your root password if it cannot works: Mai être vous pouvez essayer les commandes suivantes après la réinitialisation de votre mot de passe de root si elle ne peut pas fonctionne:

    mysql -u root mysql mysql-u root mysql
    > UPDATE user SET password=password(’secret’) WHERE user=’root’; > UPDATE user SET password = mot de passe ( "secret") où l'utilisateur = 'root';
    > flush privileges; > FLUSH PRIVILEGES;

    You may try phpmyadmin too, but I remembered I used to have exactly this same problem while phpMyAdmin didn’t help much. Vous essayez de mai phpmyadmin trop, mais je me suis souvenu que j'ai utilisé pour avoir exactement le même problème alors que phpMyAdmin ne vous aident pas beaucoup. Do let me know how you solve it. Ne permettez-moi de vous savoir comment le résoudre.

  7. jan janvier
    June 7th, 2006 13:14 7 juin 2006 13:14
    7

    you’re right changing it via phpmyadmin gave me the same result, so what i did was change some settings in the config.inc.php of phpmyadmin, change the auth_type = cookie and blowfish = mypassphrase and everything were fine. vous avez raison de changer via phpMyAdmin, il m'a donné le même résultat, si ce que j'ai fait a été de changer quelques paramètres dans le config.inc.php de phpmyadmin, le changement auth_type = cookie et blowfish = mypassphrase et tout était beau.

  8. rich riche
    August 18th, 2006 00:57 18 août 2006 00:57
    8

    The problem is that mysql (version 5.x) is not starting with mysql_enable=”YES” in /etc/rc.conf. Le problème est que MySQL (version 5.x) ne démarre pas avec mysql_enable = "yes" dans / etc / rc.conf.
    Im using FreeBSD v6.1.x. Im utilisant FreeBSD v6.1.x. I do not have the space problem between enable and the “=”. Je n'ai pas l'espace entre le problème et permettre le «=». The message I receive on bootup is “YES: notfound”. Le message que je reçois sur le démarrage est "OUI: notfound".

    Any suggestions welcome. Toute suggestions.

  9. Dom
    August 19th, 2006 10:45 19 août 2006 10:45
    9

    Ive followed this guide but when i run “mysql-server.sh start” it returns starting mysql and does nothing else. Jai suivi ce guide mais quand je le lance "mysql-server.sh start" il retourne à partir de MySQL et ne fait rien d'autre. i ran “mysql-server.sh status” and it returned “mysql is not running” J'ai couru "mysql-server.sh le statut» et il est revenu "mysql ne fonctionne pas"

    mysql_enable=”YES” is in rc.conf but is not starting. mysql_enable = "YES" est dans rc.conf mais ne démarre pas. any help? n'importe quelle aide?

  10. Administrator Administrateur
    August 19th, 2006 11:25 19 août 2006 11:25
    10

    Check if you can run mysqladmin or other mysql tools. Vérifiez si vous pouvez exécuter mysqladmin ou d'autres outils MySQL. Also make sure your “YES” in rc.conf is using proper “, as the ” in the article has been changed. Assurez-vous également que votre "oui" à l'aide de rc.conf est bon ", comme" dans l'article a été modifié.

  11. Dom
    August 19th, 2006 15:10 19 août 2006 15:10
    11

    rc.conf contains rc.conf contient
    mysql_enable=”YES” mysql_enable = "YES"
    apache22_enable=”YES” apache22_enable = "YES"

    here is results from mysqladmin -user admin Voici les résultats de mysqladmin-utilisateur admin

    mysqladmin: connect to server at ‘localhost’ failed mysqladmin: connect to server at 'localhost' a échoué
    error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’ erreur: "Impossible de se connecter au serveur MySQL local par le biais de socket '/ tmp / mysql.sock' (2)»
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists! Vérifiez que mysqld est en cours d'exécution et que le socket: '/ tmp / mysql.sock' existe!

  12. Jani Syed Jani Syed
    September 12th, 2006 21:43 Septembre 12, 2006 21:43
    12

    just delete de la supprimer

  13. Younah
    January 27th, 2007 02:06 Janvier 27th, 2007 02:06
    13

    Hi, Salut,
    I have installed freebsd 5.5 and now with your guideline instructions I have install mysql, php5 and apache2.2.But i do not know how to configure a website so I can test that if it works.Please help me with a link who can provide step by step instuctions or refer me some good basic book. J'ai installé FreeBSD 5.5 et maintenant avec votre ligne directrice instructions que j'ai installer MySQL, PHP5 et apache2.2.But Je ne sais pas comment configurer un site Web afin que je puisse tester que si elle works.Please m'aider avec un lien qui peut fournir étape par étape, instructions ou me référer un bon livre de base.
    Thanks. Merci.

  14. berry__
    March 5th, 2007 21:24 5 mars 2007 21:24
    14

    If you’re getting “mysql_install_db: Command not found.” after punching in “mysql_install_db”, you should try to cd to /usr/local/bin/ and then run “mysql_install_db”. Si vous obtenez "mysql_install_db: command not found." Après coups de poing dans "mysql_install_db", vous devez essayer de cd / usr / local / bin / et puis lancez la commande "mysql_install_db".

    Cheers. À la vôtre.

  15. berry__
    March 5th, 2007 21:25 5 mars 2007 21:25
    15

    Oh; and thanks for the great article! Oh, et grâce à l'excellent article!

  16. bramz4ever
    November 12th, 2007 13:32 Le 12 novembre 2007 13:32
    16

    i ecountered the not found error while installing mysql, what should i do? i ecountered pas trouvé l'erreur lors de l'installation de MySQL, que dois-je faire? and what is the command rehash actually is? et quelle est la commande rehash est en réalité? thank you so much. Merci beaucoup.

  17. admin
    November 12th, 2007 16:33 Novembre 12, 2007 16:33
    17

    rehash is a command to ‘refresh’ the system. rehash est une commande de 'refresh' du système. Did it work after rehash. At-il travailler après rehash.

  18. nicky6
    January 11th, 2008 10:32 Janvier 11, 2008 10:32
    18

    great tutorial! grand tutoriel! thanks! merci!

  19. Matt
    January 23rd, 2008 00:43 23 janvier 2008 00:43
    19

    Where can I find these files on a MySql 5.1 install on FreeBSD 6.2? Où puis-je trouver ces fichiers sur un MySql 5,1 sur l'installation de FreeBSD 6.2?

    my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf mon-huge.cnf, mon-large.cnf, mon-medim.cnf, mon-small.cnf ou ma-innodb-lourds 4G.cnf

  20. Tyler
    March 23rd, 2008 02:39 23 mars 2008 02:39
    20

    the my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf are found in /usr/local/share/mysql/ la ma-huge.cnf, mon-large.cnf, mon-medim.cnf, small.cnf ma-ma-ou-innodb 4G.cnf-lourds se trouvent dans / usr / local / share / mysql /

  21. DrTebi
    August 2nd, 2008 07:21 2 août 2008 07:21
    21

    On FreeBSD 7.0 you don’t need to manually install the databases and set permissions, that is done in the startup script the first time it is run. Sur FreeBSD 7.0 vous n'avez pas besoin d'installer manuellement les bases de données et définir des autorisations, ce qui est fait dans le script de démarrage la première fois, il est exécuté.

    Just make sure you have Assurez-vous simplement que vous avez
    mysql_enable=”YES” mysql_enable = "YES"
    in /etc/rc.conf before you run mysql-server. dans le fichier / etc / rc.conf avant d'exécuter mysql-server.

    You could hence rewrite the install instructions to this: Vous pouvez donc de nouveau à l'installation à ceci:

    cd /usr/ports/databases/mysql50-server cd / usr/ports/databases/mysql50-server
    make install clean make install clean
    echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf echo 'mysql_enable = "YES"'>> / etc / rc.conf
    /usr/local/etc/rc.d/mysql-server start / usr / local / etc / rc.d / mysql-server start

  22. Leighland
    August 21st, 2008 13:06 21 août 2008 13:06
    22

    Hey there. Hey there. I was having trouble with the “mysql_install_db: command not found” when installing FreeBSD 7. J'avais des problèmes avec le "mysql_install_db: command not found" lors de l'installation de FreeBSD 7. I ran the rehash command and then entered mysql_install_db again and it worked fine. J'ai couru la commande rehash et mysql_install_db est alors entré dans une nouvelle fois et tout fonctionnait bien.

Leave a Reply Laisser un commentaire

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Vous pouvez utiliser ces balises: <a href="" title="fete_christel <abbr title="fete_christel <acronym title="fete_christel <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting S'abonner sans commentaires


Custom Search

New Articles Nouveaux articles

Incoming Search Terms for the Article Des termes de recherche utilisés pour l'article

freebsd mysql install FreeBSD installer mysql - -- freebsd mysql freebsd mysql - -- freebsd phpmyadmin freebsd phpmyadmin - -- freebsd mysql 5 freebsd MySQL 5 - -- mysql freebsd mysql FreeBSD - -- always get in mysql without password toujours en MySQL sans mot de passe - -- apache2 bsd install apache2 installer bsd - -- apache mysql freebsd Apache MySQL freebsd - -- apache 2.2 is not starting Apache 2.2 ne démarre pas - -- create a web page in apache server freeBSD Créer une page Web dans le serveur apache freeBSD - -- freebsd set up mysql FreeBSD mis en place mysql - -- freebsd 7.0 installing apache l'installation de FreeBSD 7.0 apache - -- freebsd mysql enable freebsd permettre mysql - -- freebsd apache mysql php howto freebsd Apache MySQL PHP howto - -- freebsd install mysql FreeBSD installer mysql - -- freebsd webserver installation l'installation de FreeBSD web - -- freebsd mysql config freebsd mysql config - -- freebsd starting mysql freebsd départ mysql - -- howto php apache freebsd howto apache php FreeBSD - -- how to install mysql in freebsd Comment faire pour installer mysql dans FreeBSD - -- how to install mysql in freebsd 7 Comment faire pour installer mysql dans FreeBSD 7 - -- install mysql on freebsd installer mysql sur FreeBSD - -- install mysql freebsd installer mysql FreeBSD - -- install apache freebsd apache installer FreeBSD - -- mysql on freebsd mysql sur FreeBSD - -- mysql-server freebsd mysql-server freebsd - -- mysql_enable mysql_enable - -- starting mysql freebsd Lancer MySQL freebsd - --