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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.