Follow us on Twitter!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
Friday, April 18, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 24
Guests Online: 23
Members Online: 1

Registered Members: 82828
Newest Member: uberscon
Latest Articles
View Thread

HellBound Hackers | HellBound Hackers | Questions

Author

Coppermine install


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
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 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.
Author

RE: Coppermine install

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
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]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
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
Member



Posts: 1690
Location: Canada
Joined: 26.01.06
Rank:
Hacker Level 1
Posted on 08-05-09 13:00
okay, here I go.

[edit due to not posting this *looks at spyware*] from: http://www.flmnh.. . .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
Just ask Yahoo!Taboo! http://www.erikwestlake.com
Author

RE: Coppermine install

spyware
Member



Posts: 4192
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.. . .apache.htm



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
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
[/s
http://bitsofspy.net