Answer the question
In order to leave comments, you need to log in
No data entered into MySQL. What to do?
In general, the problem is as follows:
I installed Ubuntu 16.04, installed the LAMP server, loaded the engine, went to the site, everything works, but when I try to register, no data is entered into the database and the page is simply updated. At first I thought I had connected something wrong, but no! I used the Default Admin user in the engine, logged in.
I installed this CMS on Denwer, on OpServer and on hosting, everything worked, but as soon as I installed Ubuntu on LAMP, the data stopped being entered. Maybe you need to rummage through the server configs? If yes, what files to edit?
PS In general, no data from under the site is entered. Neither in the admin panel, nor when registering
Answer the question
In order to leave comments, you need to log in
Good morning.
To catch the error - look at the logs in /var/log. In this directory you will find apache2 and mysql logs (and not only)
ps I update the answer, for the same beginners as me and the author of the question Nokira Nokawa
Anyway, this topic appears on toster.ru often.
In order to install the apache2 + php + mysql bundle, no matter what version - use tasksel
To
do this, type in the terminal:
If an error occurs during installation, there is a problem with dependencies, in the terminal the following
command :
using the cursor keys (up / down arrows) select "lamp server" , press the spacebar, then the keytab and confirm with OK .
The installation process automatically configures mysql.
After installation and configuration, you may need to install phpadmin
To do this, execute the command in the terminal:
That's it, lamp is installed.
After that, you can go to the settings of apache2 itself, php and mysql.
The user under which you enter the data exactly exists?
You can log into it using the
mysql console -u%admin% -p
If you perform these operations under another user, you are sure that he has all the privileges.
Usually, after installing LAMP, the system asks you to enter the admin password with the
mysqladmin -uroot password 'mypassword' console.
The most attentive do not read what is written on the monitor.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question