Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql and php segementation fault

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I need to get mysql working with the mysql database, and for some reason I get a segmentation fault everytime I run a php script, and the page never comes up thru apache.

Thanks for the help!!! Rninja

smlogo.gif

 
Do you have the mysqld server running? You will have to set it to start at boot up. This is not the default. Usually, you get this error when something goes wrong with the script accessing the database. Most php scripts that use mysql will need the dbuser (you) , your dbpassword, dbname (database name) and the servers name (localhost in most cases). If these are all correct in your scripts .conf file, then you need to make sure the dbuser has permissions and privilages to create and modify the database and its tables.
 
I've got everything running, but I think I need the php-mysql package. When I try to install it, I get the error that libmysqlclient.so.10 is required, but that file exists.
I have placed the library in /etc/ld.so.conf and I even exported the library to $PATH. I still cannot install that package which is needed to link php and mysql. Rninja

smlogo.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top