Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
Well, I’ve finally found the problem. The file /var/run/mysqld/mysql.sock file was missing, I really don’t know how or why but I returned to a old snapshot and did things over it and now everything seems to work.
Thanks @MDS for the help, some things were useful for me.
Make sure that you have AllowOverride set to All in your apache virtual host file.
<Directory /var/www>
AllowOverride All
</Directory>
And change .htaccess to
Redirect 301 /createuser/ /api/user/create.php
Hi,
My apache2.conf file contains exactly this:
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
I’ve got several Virtual Host files: 000-default.conf, domain.tld.conf, sub1.domain.tld.conf, sub2.domain.tld.conf and in all of them I’ve got:
<Directory /var/www/url/public_html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Where url can be html, domain.tld, sub1.domain.tld or sub2.domain.tld.
Also I’ve changed the .htaccess as you told me, and stills the same >.<
Thanks for the help