Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 Installazione di server Web in FreeBSD 6.0 con Apache 2.2, MySQL 5.0 e PHP 5 - Parte 3

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Installare Apache 2.2, MySQL 5 e PHP 5 in FreeBSD 6.0 per un affidabile Web Server

Part 3 - Installing MySQL Server 5 with FreeBSD Ports Collection Parte 3 - Installazione di MySQL 5 Server con FreeBSD Ports Collection

  1. Login to the FreeBSD system as root, or su - root to get to super user environment. Login per il sistema FreeBSD come root, o su - root per arrivare al super utente ambiente.
  2. Enter the following commands at FreeBSD command line interface (CLI) (Wait till each command to finish processing before running the next command): Immettere i seguenti comandi a FreeBSD interfaccia della riga di comando (CLI) (Attendere fino a ciascun comando per terminare l'elaborazione prima di eseguire il comando successivo):

    cd /usr/ports/databases/mysql50-server cd / usr/ports/databases/mysql50-server
    make install clean make install pulito
    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 utente-mysql = &

    Note: If you encounter Command not found error, use command rehash to update OS path environment variables. Nota: Se si riscontrano Command not found errore, utilizzare il comando rimaneggiamento di aggiornamento OS percorso variabili d'ambiente.

  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. Il porto di installazione metterà un file di script mysql-server.sh in / usr / local / etc / rc.d che ha la capacità di avviare server MySQL. To enable MySQL server to start automatically after every FreeBSD server reboot, enter the following command in CLI: Per consentire l'esecuzione il server MySQL per l'avvio automatico di FreeBSD dopo ogni riavvio del server, immettere il seguente comando nella 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). Per impostazione predefinita, MySQL predefinito super account utente - radice - ha nessuna password (password vuota). So it’s important to assign the administrator account password. Quindi è importante per assegnare la password di account amministratore. To change the password to root user, enter the following command: Per modificare la password di root, digitare il seguente comando:

    mysqladmin -u root password newpassword mysqladmin-u root password Newpassword

    Replace newpassword with your own desired password. Newpassword sostituire con la propria password desiderata.

  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. In alternativa, copia o-huge.cnf mio, il mio-large.cnf, il mio-medim.cnf, il mio small.cnf-o-mio-InnoDB pesanti 4G.cnf (a seconda l'utilizzo e l'uso di server MySQL), come il mio . CNF in / var / db / mysql che vi permetterà di perfezionare e modificare la configurazione del server-server MySQL specifiche opzioni modificando il file.
  6. MySQL 5.0 installation done. MySQL 5.0 installazione fare.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una macchina tradotto pagina che è fornito "così come sono" senza garanzia. Machine translation may be difficult to understand. La traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in inglese whenever possible. ogniqualvolta ciò sia possibile.

Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e contribuire a My Digital Life Forums La mia vita digitale forum .



22 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3” 22 Responses to "Installazione di server Web in FreeBSD 6.0 con Apache 2.2, MySQL 5.0 e PHP 5 - Parte 3"

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

    mysql_enable = mysql_enable =

  2. Administrator Amministratore
    May 21st, 2006 14:07 21 Maggio 2006 14:07
    2

    Thanks for pointing out, will update. Grazie per sottolineare, verrà aggiornato.

  3. jan gennaio
    June 6th, 2006 11:08 6 giugno 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. Sono stucked con il mysql parte della vostra guida, dopo il rilascio # mysqladmin-u root password Newpassword, ho rilasciato # mysql-u root-p Newpassword, i semper ottenere l'accesso negato errore. what did i miss? Cosa ho perdere?

    thanks grazie

  4. Administrator Amministratore
    June 6th, 2006 11:49 6 giugno 2006 11:49
    4

    jan, may be you have set the password for root. gennaio, può essere che hai impostato la password di root. Try to access mysql with -u userid and -p password option. Tenta di accedere a mysql-u con userid e password-p opzione. Or you can follow instruction In alternativa, puoi seguire le istruzioni here qui on how to change and reset your root password. su come modificare e reimpostare la tua password di root.

  5. jan gennaio
    June 6th, 2006 14:32 6 giugno 2006 14:32
    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. Ho provato tutte le opzioni menzionate, ma nessuno di loro ha lavorato, per cui ho fatto una nuova installazione di nuovo, prima di creare una password per l'utente root mysql, ho effettuato l'accesso come root e ha funzionato bene, sono stato in grado di ottenere una shell di mysql, ma quando il comando mysqladmin per creare una password per l'utente root, ho ricevuto un messaggio di errore, ho provato ad accedere come root e wtf Sono indietro con lo stesso problema. do u think i would be better off if i install phpmyadmin and change the root password from there? fare e credo sarebbe meglio se installare i e phpMyAdmin cambiare la password di root da lì?

  6. Administrator Amministratore
    June 6th, 2006 16:56 6 giugno 2006 16:56
    6

    Did you flush privileges after changing the password? Avete sciacquare i privilegi dopo aver cambiato la password? The problem may be due to hashing of MySQL password. Il problema può essere dovuto a hashing di MySQL password. May be you can try the following commands after resetting your root password if it cannot works: Può essere puoi provare i seguenti comandi dopo reimpostare la password di root se non è in grado di lavori:

    mysql -u root mysql mysql-u root mysql
    > UPDATE user SET password=password(’secret’) WHERE user=’root’; > UPDATE utente SET password = password ( 'segreto'), dove user = 'root';
    > flush privileges; > Flush privilegi;

    You may try phpmyadmin too, but I remembered I used to have exactly this same problem while phpMyAdmin didn’t help much. Puoi provare a phpmyadmin troppo, ma mi sono ricordato che ho usato per avere esattamente lo stesso problema mentre phpMyAdmin non ha aiutato molto. Do let me know how you solve it. Non vorrei sapere come si risolverlo.

  7. jan gennaio
    June 7th, 2006 13:14 7 Giugno 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. Hai ragione cambiando via phpmyadmin mi ha dato lo stesso risultato, quindi ciò che ho fatto è stato modificare alcune impostazioni nel config.inc.php di phpmyadmin, cambiare il auth_type = cookie e blowfish = mypassphrase tutto e sono state belle.

  8. rich ricco
    August 18th, 2006 00:57 18 agosto 2006 00:57
    8

    The problem is that mysql (version 5.x) is not starting with mysql_enable=”YES” in /etc/rc.conf. Il problema è che mysql (versione 5.x) non è che iniziano con mysql_enable = "YES" in / etc / rc.conf.
    Im using FreeBSD v6.1.x. Im utilizzando FreeBSD v6.1.x. I do not have the space problem between enable and the “=”. Non ho lo spazio problema e consentire fra l' "=". The message I receive on bootup is “YES: notfound”. Il messaggio che ho ricevuto durante l'avvio è "Sì: notfound".

    Any suggestions welcome. Qualsiasi suggerimenti benvenuto.

  9. Dom
    August 19th, 2006 10:45 Agosto 19, 2006 10:45
    9

    Ive followed this guide but when i run “mysql-server.sh start” it returns starting mysql and does nothing else. Ho seguito questa guida, ma quando mi gira "mysql-server.sh inizio" si ritorna a partire mysql e altro non fa nulla. i ran “mysql-server.sh status” and it returned “mysql is not running” I corse "mysql-server.sh stato" e che ha restituito "mysql non è in esecuzione"

    mysql_enable=”YES” is in rc.conf but is not starting. mysql_enable = "YES" è in rc.conf ma non è di partenza. any help? qualsiasi aiuto?

  10. Administrator Amministratore
    August 19th, 2006 11:25 Agosto 19, 2006 11:25
    10

    Check if you can run mysqladmin or other mysql tools. Verificare se è possibile eseguire mysqladmin mysql o altri strumenti. Also make sure your “YES” in rc.conf is using proper “, as the ” in the article has been changed. Anche assicurarsi che il proprio "Sì" in rc.conf è corretto utilizzare ", come" in questo articolo è stato modificato.

  11. Dom
    August 19th, 2006 15:10 Agosto 19, 2006 15:10
    11

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

    here is results from mysqladmin -user admin Ecco i risultati da mysqladmin-utente admin

    mysqladmin: connect to server at ‘localhost’ failed mysqladmin: connettersi al server 'localhost' fallito
    error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’ Errore: 'Impossibile connettersi al server MySQL locali attraverso socket' / tmp / mysql.sock '(2)'
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists! Controllare che mysqld è in esecuzione e che il socket: '/ tmp / mysql.sock' esiste!

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

    just delete solo eliminare

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

    Hi, Salve,
    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. Ho installato FreeBSD 5.5 e ora con il vostro orientamento istruzioni ho installare MySQL, PHP5 e apache2.2.But non so come configurare un sito web in modo che io possa prova del fatto che, se works.Please aiutarmi con un link che può fornire passo dopo passo instuctions o mi riferiscono alcuni buoni libro di base.
    Thanks. Grazie.

  14. berry__
    March 5th, 2007 21:24 5 Marzo 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”. Se sei il messaggio "mysql_install_db: Command not found." Dopo punzonatura in "mysql_install_db", si dovrebbe cercare di cd in / usr / local / bin / e poi gira "mysql_install_db".

    Cheers. Salute.

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

    Oh; and thanks for the great article! Oh, e grazie per il grande articolo!

  16. bramz4ever
    November 12th, 2007 13:32 Novembre 12th, 2007 13:32
    16

    i ecountered the not found error while installing mysql, what should i do? i ecountered l'errore non trovato durante l'installazione di MySQL, che cosa devo fare? and what is the command rehash actually is? e qual è il comando rimaneggiamento è effettivamente? thank you so much. la ringrazio tanto.

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

    rehash is a command to ‘refresh’ the system. rimaneggiamento è un comando a 'rinfrescare' il sistema. Did it work after rehash. Ha lavoro dopo rimaneggiamento.

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

    great tutorial! grande tutorial! thanks! grazie!

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

    Where can I find these files on a MySql 5.1 install on FreeBSD 6.2? Dove posso trovare questi file su un MySql 5,1 installare su FreeBSD 6.2?

    my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf -huge.cnf mio, il mio-large.cnf, il mio-medim.cnf, il mio small.cnf-o-mio-InnoDB pesanti 4G.cnf

  20. Tyler
    March 23rd, 2008 02:39 Marzo 23, 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/ il mio-huge.cnf, il mio-large.cnf, il mio-medim.cnf, il mio small.cnf-o-mio-InnoDB pesanti 4G.cnf si trovano in / usr / local / share / mysql /

  21. DrTebi
    August 2nd, 2008 07:21 2a agosto, 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. Su FreeBSD 7.0 non è necessario installare manualmente i database e impostare le autorizzazioni, che è fatto in script di avvio la prima volta che viene eseguito.

    Just make sure you have Solo assicurati di avere
    mysql_enable=”YES” mysql_enable = "YES"
    in /etc/rc.conf before you run mysql-server. in / etc / rc.conf prima di eseguire il mysql-server.

    You could hence rewrite the install instructions to this: Si può quindi riscrivere le istruzioni per installare questo:

    cd /usr/ports/databases/mysql50-server cd / usr/ports/databases/mysql50-server
    make install clean make install pulito
    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 agosto 2008 13:06
    22

    Hey there. Hey there. I was having trouble with the “mysql_install_db: command not found” when installing FreeBSD 7. Sono stato avendo dei problemi con il "mysql_install_db: comando non trovato" durante l'installazione di FreeBSD 7. I ran the rehash command and then entered mysql_install_db again and it worked fine. Ho eseguito il rimaneggiamento di comando e poi di nuovo è entrato mysql_install_db e ha funzionato bene.

Leave a Reply Lascia un Commento

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> È possibile utilizzare questi tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Iscriviti senza commentare


Custom Search

New Articles Nuovi articoli

Incoming Search Terms for the Article Cerca in entrata Termini per l'articolo

freebsd mysql FreeBSD mysql - -- mysql freebsd mysql FreeBSD - -- install mysql freebsd mysql installare FreeBSD - -- freebsd install mysql FreeBSD installare mysql - -- freebsd phpmyadmin FreeBSD phpmyadmin - -- freebsd mysql install mysql installare FreeBSD - -- freebsd mysql 5 FreeBSD MySQL 5 - -- mysql freebsd install mysql installare FreeBSD - -- freebsd mysql config FreeBSD mysql config - -- install mysql on freebsd installare MySQL su FreeBSD - -- mysql_enable mysql_enable - -- freebsd apache mysql php howto FreeBSD Apache MySQL PHP howto - -- freebsd rc.conf mysql FreeBSD rc.conf mysql - -- freebsd restart mysql FreeBSD riavviare mysql - -- MySQL in freeBSD MySQL in FreeBSD - -- mysql config freebsd mysql configurazione di FreeBSD - -- freebsd apache howto FreeBSD apache howto - -- howto freebsd mysql FreeBSD howto mysql - -- rc.conf mysql rc.conf mysql - -- freebsd mysql 5.0 install FreeBSD installare MySQL 5.0 - -- how to install mysql freebsd Come installare MySQL FreeBSD - -- mysql server config howto freebsd MySQL server di configurazione di FreeBSD HOWTO - -- mysql 6.0 freebsd mysql FreeBSD 6.0 - -- mysql 5.0 start on boot freebsd MySQL 5.0 avviare al boot di FreeBSD - -- install apache web server on freebsd installare il server web Apache su FreeBSD - -- start mysql freebsd avviare mysql FreeBSD - -- always get in mysql without password semper in MySQL senza password - -- apache2 bsd install bsd installare apache2 - -- apache mysql freebsd Apache MySQL FreeBSD - -- apache 2.2 is not starting Apache 2.2 non è a partire - -- create a web page in apache server freeBSD creare una pagina web server Apache in FreeBSD - -- freebsd set up mysql FreeBSD istituito mysql - -- freebsd 7.0 installing apache FreeBSD 7.0 installazione di apache - -- freebsd mysql enable FreeBSD mysql enable " - -- freebsd webserver installation FreeBSD installazione web - -- freebsd starting mysql FreeBSD a partire mysql - -- howto php apache freebsd howto php apache FreeBSD - -- how to install mysql in freebsd Come installare MySQL in FreeBSD - -- how to install mysql in freebsd 7 Come installare MySQL in FreeBSD 7 - -- install apache freebsd installare Apache FreeBSD - -- mysql on freebsd MySQL su FreeBSD - -- mysql-server freebsd mysql-server FreeBSD - -- starting mysql freebsd a partire mysql FreeBSD - -- apache2+php in freebsd 7 apache2 + php in FreeBSD 7 - -- apache22 "freebsd 5.5" apache22 "FreeBSD 5.5" - -- apache server start result 137 server Apache inizio risultato 137 - -- freebsd apache shell environment variables FreeBSD apache variabili di ambiente della shell - -- freebsd mysql5 FreeBSD mysql5 - -- freebsd apache php howto FreeBSD apache php howto - -- freebsd setting up mysql socket FreeBSD creazione di socket mysql - --