Jump to content

How to fix: PHP on linux/ubuntu (extension, configuration)

- - - - -

  • Please log in to reply
2 replies to this topic

#1
AdrianWierciochPHP

AdrianWierciochPHP

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
Hi!

I have some problem. I use ubuntu lts 10.4 as my machine to programming. I do not use it a long time and I turned on it few day ago and I saw that I can not connect with my MySQL DB. Browser print me that mysql_connect is undefined. I can not believe it but I checked it. I read I must use some library but I thought PHP pack make accessible this extension. I don`t wont install all extension I will use and I`m asking: is any way to omit install extension, for instance reinstall PHP on my ubuntu or another action? If you know how to resolved it please give exact informations with tasks for linux/ubuntu (sorry but I do not know all task for ubuntu, for instance to uninstall PHP etc.)



Please help me :)

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#
are you sure that MySQL is installed on the server? If so, check your php.ini and see if the mysql addon is there. you want to use mysqli instead of mysql if available.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
AdrianWierciochPHP

AdrianWierciochPHP

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
I`m sure becouse I use it from my linux Panel. I can log in, create new tables and records. So I will check it letter, thx.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users