Coppermine install
Hey there. I am trying to setup a coppermine gallery on a server and I can't seem to get the configuration right. My error: PHP does not have MySQL support enabled. I am using red hat fedora core 9. I read something saying I need to enable enable MySQL API support by > compiling PHP yourself, specify –with-mysql option to configure script. After proper compiling and installation, MySQL support should be enabled. Does this mean configure the /etc/php.ini? I cant seem to have the mysql header show up when I use a simple php info script. Any help, enabling mysql with php.
I infer you have mysql server installed yeah. Try checking your php.ini file, normally at the bottom you will have referenced all the extensions available for php, one of which should of course point to mysql library. Also normally you will have in your php.ini file specifications regarding to mysql functions, like default database to connect to, so check if those are present…
okay, here I go.
[edit due to not posting this looks at spyware] from: http://www.flmnh.ufl.edu/linux/install_apache.htm [/edit]
Step # 1 ) Install Apache, MySQL, PHP yum -y install httpd php mysql mysql-server php-mysql
Step # 2 ) Set the services to start on boot /sbin/chkconfig httpd on /sbin/chkconfig mysqld on
/sbin/service httpd start /sbin/service mysqld start
Step # 3 ) Set up the MySQL Password mysqladmin -u root password 'new-password'
Step # 4 ) Remove all items in MySQL that are not needed for security reasons mysql -u root -p mysql> DROP DATABASE test; mysql> DELETE FROM mysql.user WHERE user = ''; mysql> FLUSH PRIVILEGES;
Step # 5) Create a PHP test page in your www root folder <?php phpinfo(); ?>
Step # 6) Create your MySQL Database mysql> CREATE DATABASE web_db; mysql> GRANT ALL PRIVILEGES ON web_db.* TO 'web_user'@'localhost' IDENTIFIED BY 'thepassword';
Step # 7 ) Enjoy PHP and MySQL
Let me know if this helps
AldarHawk wrote: Let me know if this helps
Link to source.