I have 2 different php versions running. They are running fine but they are not connected to mysql and I dont know why. They should be and I dont know how I can force them to connect with mysql.
The php versions are 5.3.27 and 5.4.31 If u need any more information, let me know.
Please use the following command to install mysql client for php and enable it in php.ini
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
Make sure to restart apache (or any web server you are using) before you try to see any changes.
Digital Ocean provides easy guides on installing LAMP environment. Have a look here https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
It's working now. I just mistyped "extension=mysql.so" :/
Anyways thanks for trying to help!