Jump to content

new to apache / php setup - how to change the configuration - help!


scotch33

Recommended Posts

Hi there,

 

I have just got a new dedicated server and need to setup PHP to work with mysql on it.  Now it comes pre-installed with php, my sql and REDHAT.  I have checked the PHPO config and can see that the problem I have (found whilst trying to install some software that wouldn't install because "Mysql extension" is not switched on) is that in the .configure php command 'without mysql' is set.  I am  guessing that by changing this command to 'with mysql' i'll be able to turn on the php ability to work with mysql and thus solve the prob.  So my question is how do i do that?  If anyone can point me at some help where I can learn about how to change the configure command in apache (if that is right?), then I would appreciate it!

 

Thanks!

 

John.

Link to comment
Share on other sites

Guest prozente

Normally you'd have to recompile PHP, which is documented on php.net here

But since you're running redhat and this is a server I'm guessing this is RHEL, you should be able to use the package management instead, try running the below command as root.

 

yum install php-mysql

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.