bonsoir ,
de guerre lasse je vous écrit .
j'ai installé un serveur LAMP sur mon systeme (
https://udona.fr/sysadmin/installer-ser … 9-stretch/)
j'ai fait ceci :
mysql_secure_installation
et rentré le mot de passe
puis :
CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY 'MONSUPERPASSWD';
# mysql --user=root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 51
Server version: 10.1.29-MariaDB-6 Debian buildd-unstable
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [mysql]> CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY 'MONSUPERPASSWD';
ERROR 1396 (HY000): Operation CREATE USER failed for 'phpmyadmin'@'localhost'
MariaDB [mysql]> CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY 'tyfanch';
ERROR 1396 (HY000): Operation CREATE USER failed for 'phpmyadmin'@'localhost'
MariaDB [mysql]>
pouvez vous me dépanner ?
# mysql --user=root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 52
Server version: 10.1.29-MariaDB-6 Debian buildd-unstable
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [mysql]> select user from mysql.user;
+------------+
| user |
+------------+
| phpmyadmin |
| root |
+------------+
2 rows in set (0.00 sec)
MariaDB [mysql]>
bon , il apparait que la base de données est déjà crée .
comment modifier son mot de passe ?
ce tuto est pourri , je n'arrive à rien
voilà le résuiltat : même pas d'accès à phpmyadmin
~$ ls /var/www/phpmyadmin/
ajax.php server_binlog.php
browse_foreigners.php server_collations.php
ChangeLog server_databases.php
changelog.php server_engines.php
chk_rel.php server_export.php
composer.json server_import.php
composer.lock server_plugins.php
config.sample.inc.php server_privileges.php
CONTRIBUTING.md server_replication.php
db_central_columns.php server_sql.php
db_datadict.php server_status_advisor.php
db_designer.php server_status_monitor.php
db_events.php server_status.php
db_export.php server_status_processes.php
db_import.php server_status_queries.php
db_operations.php server_status_variables.php
db_qbe.php server_user_groups.php
db_routines.php server_variables.php
db_search.php setup
db_sql_autocomplete.php show_config_errors.php
db_sql_format.php sql
db_sql.php sql.php
db_structure.php tbl_addfield.php
db_tracking.php tbl_change.php
db_triggers.php tbl_chart.php
DCO tbl_create.php
doc tbl_export.php
error_report.php tbl_find_replace.php
examples tbl_get_field.php
export.php tbl_gis_visualization.php
favicon.ico tbl_import.php
gis_data_editor.php tbl_indexes.php
import.php tbl_operations.php
import_status.php tbl_recent_favorite.php
index.php tbl_relation.php
js tbl_replace.php
libraries tbl_row_action.php
LICENSE tbl_select.php
license.php tbl_sql.php
lint.php tbl_structure.php
locale tbl_tracking.php
logout.php tbl_triggers.php
navigation.php tbl_zoom_select.php
normalization.php templates
phpinfo.php themes
phpMyAdmin-4.7.3-all-languages themes.php
phpmyadmin.css.php transformation_overview.php
prefs_forms.php transformation_wrapper.php
prefs_manage.php url.php
print.css user_password.php
README vendor
RELEASE-DATE-4.7.3 version_check.php
robots.txt view_create.php
schema_export.php view_operations.php
j'essaie ceci : https://linuxconfig.org/how-to-install- … etch-linux
Testing Your Server
By default, Apache will server the contents of /var/www/html and will look first for a file called index.php or index.html. Create that file, and place the following line of code in it.
<?php phpinfo(); ?>
Open up your browser and type in localhost in your address bar. If you aren't doing this locally, type your domain name or IP. You should see a long table containing information about your PHP install. At this point, your sever is officially working.
ben non , justement . page blanche .
If you want an easy way to manage your database through a graphical web interface, you can install an application called, phpmyadmin. It allows you to manage your database using PHP through your LAMP server. To install it on Stretch, just pull it with apt.
# apt install phpmyadmin
Once the package installs, you can navigate in your browser to localhost/phpmyadmin You will be greeted with a login screen that will accept your database credentials and finally, an interface to work with your database.
je ne sais plus quoi faire .
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 32
Server version: 10.1.29-MariaDB-6 Debian buildd-unstable
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [mysql]> select user from mysql.user;
+------------+
| user |
+------------+
| phpmyadmin |
| root |
| username |
+------------+
3 rows in set (0.00 sec)
dans le meilleur des cas , mysql fonctionne bien mais pas P.M.A.
ni d'ailleurs adminer .
j'ai essayé ceci : https://memo-linux.com/adminer-outil-tr … e-donnees/
mais :
pourtant :
adminer.php html phpmyadmin
$ sudo service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-05-12 08:48:11 CEST; 2h 44min ago
Process: 18716 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Main PID: 6773 (apache2)
Tasks: 8 (limit: 4915)
Memory: 41.9M
CGroup: /system.slice/apache2.service
├─ 6773 /usr/sbin/apache2 -k start
├─18720 /usr/sbin/apache2 -k start
├─18721 /usr/sbin/apache2 -k start
├─18722 /usr/sbin/apache2 -k start
├─18723 /usr/sbin/apache2 -k start
├─18724 /usr/sbin/apache2 -k start
├─18725 /usr/sbin/apache2 -k start
└─18843 /usr/sbin/apache2 -k start
mai 12 09:08:02 Alain-PC systemd[1]: Reloaded The Apache HTTP Server.
mai 12 09:08:02 Alain-PC systemd[1]: Reloading The Apache HTTP Server.
mai 12 09:08:02 Alain-PC apachectl[12853]: AH00112: Warning: DocumentRoot [/var/www/monsuperdirectory] does not exist
mai 12 09:08:02 Alain-PC systemd[1]: Reloaded The Apache HTTP Server.
mai 12 10:31:03 Alain-PC systemd[1]: Reloading The Apache HTTP Server.
mai 12 10:31:03 Alain-PC apachectl[18658]: AH00112: Warning: DocumentRoot [/var/www/monsuperdirectory] does not exist
mai 12 10:31:03 Alain-PC systemd[1]: Reloaded The Apache HTTP Server.
mai 12 10:31:03 Alain-PC systemd[1]: Reloading The Apache HTTP Server.
mai 12 10:31:03 Alain-PC apachectl[18716]: AH00112: Warning: DocumentRoot [/var/www/monsuperdirectory] does not exist
mai 12 10:31:03 Alain-PC systemd[1]: Reloaded The Apache HTTP Server.
après rectification de l'arborescence :
adminer.php html monsuperdirectory phpmyadmin
$ sudo service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-05-12 11:36:56 CEST; 2min 12s ago
Process: 23008 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 18716 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 23038 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 23042 (apache2)
Tasks: 8 (limit: 4915)
Memory: 34.3M
CGroup: /system.slice/apache2.service
├─23042 /usr/sbin/apache2 -k start
├─23043 /usr/sbin/apache2 -k start
├─23044 /usr/sbin/apache2 -k start
├─23045 /usr/sbin/apache2 -k start
├─23046 /usr/sbin/apache2 -k start
├─23047 /usr/sbin/apache2 -k start
├─23048 /usr/sbin/apache2 -k start
└─23149 /usr/sbin/apache2 -k start
mai 12 11:36:56 Alain-PC systemd[1]: Starting The Apache HTTP Server...
mai 12 11:36:56 Alain-PC systemd[1]: Started The Apache HTTP Server.
adminer.php html monsuperdirectory monsupersite phpmyadmin
bon , j'arrive à faire fonctionner adminer :
adminer bdd mysql "PHPMYADMIN" adminer bdd mysql "USERNAME"
par contre , malgré toutes mes tentatives , je n'arrive pas à faire fonctionner PHPMYADMIN
problème résolu pour phpmyadmin .
PHP 7.0.29-1 (cli) (built: Apr 5 2018 08:31:53) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.29-1, Copyright (c) 1999-2017, by Zend Technologies
$ sudo apt install php7.0-mbstring
[sudo] Mot de passe de alain :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
dh-python libgegl-0.3-0 libllvm5.0 libminiupnpc16 libre2-3 libvpx4 php-pgsql
php7.2-pgsql python-cairo python-gobject-2 python-gtk2 python3-distutils
python3-lib2to3
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les NOUVEAUX paquets suivants seront installés :
php7.0-mbstring
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 468 ko dans les archives.
Après cette opération, 1518 ko d'espace disque supplémentaires seront utilisés.
Réception de:1 http://ftp.fr.debian.org/debian testing/main amd64 php7.0-mbstring amd64 7.0.29-1 [468 kB]
468 ko réceptionnés en 0s (2278 ko/s)
Récupération des rapports de bogue… Fait
Analyse des informations Trouvé/Corrigé… Fait
Sélection du paquet php7.0-mbstring précédemment désélectionné.
(Lecture de la base de données... 221909 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../php7.0-mbstring_7.0.29-1_amd64.deb ...
Dépaquetage de php7.0-mbstring (7.0.29-1) ...
Paramétrage de php7.0-mbstring (7.0.29-1) ...
Creating config file /etc/php/7.0/mods-available/mbstring.ini with new version
Traitement des actions différées (« triggers ») pour libapache2-mod-php7.0 (7.0.29-1) ...
~$ sudo service apache2 restart
voilà , c'est ok .
je peux passer à WordPress
Dernière modification par Debian Alain (12-05-2018 15:18:04)