Join us at IRC!
Society leans ever heavily on computers, if you have the power to take out computers you can take out society. - cubeman372
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 36
Web Spiders: 19
Guests Online: 31
Members Online: 5

Registered Members: 70172
Newest Member: kosova
Latest Articles
View Thread

HellBound Hackers | HellBound Hackers | Questions

Author

Coppermine install

chronicburst
Member

Posts: 466
Location: /root/
Joined: 03.01.08
Rank:
Elite
Posted on 08-05-09 01:16
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 scblockedript. 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 scblockedript.
Any help, enabling mysql with php.
chronicburst at yahoo dot com http://hellboundhackers.org
Author

RE: Coppermine install

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
God
Posted on 08-05-09 02:06
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...


[img][/img]


spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl

clone_4@hotmail.com
Author

RE: Coppermine install

AldarHawk
The Manager



Posts: 1661
Location: Canada
Joined: 26.01.06
Rank:
God
Posted on 08-05-09 13:00
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




Edited by AldarHawk on 08-05-09 20:21
I(don't)See Just ask Yahoo!Taboo! http://www.erikwestlake.com
Author

RE: Coppermine install

spyware
Member



Posts: 4190
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 08-05-09 17:27
AldarHawk wrote:
Let me know if this helps


Link to source.

http://www.flmnh.ufl.edu/linux/install_apache.htm




"The chowner of property." - Zeph
“Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.”
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
http://bitsofspy.net
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.