Jump to content

PHP and MySQL


Recommended Posts

Hi there.

 

I've used the Search here on the forum, and found this:

 

Whats Os are you running, Windows or linux/Max? If its windows read this FAQ

 

With PHP5 you need to enable the mysql_extension. If you are installing PHP on linux/mac you need to recomiple PHP with the -with-mysql command option.

 

I'm trying to installl a phpBB3 forum hosted on my server. I have already installed apache, whicch came with php. I don't know which php version is installed (how can I see it on a Linux box?), and I've installed MySQL, created a database and a username. However phpBB doesn't recognize the MySQL databases and says MySQL is unavailable. So i presume my php version is 5, because as I read there's a small problem with MySQL and PHP5.

 

So how can I see my php version? (debian linux computer)

How can I recompile it? It was installed with apt-get, so I can't configure it while installing. Can I enable MySQL after it is installed?

 

 

Link to comment
Share on other sites

The amp stack is easy to install / configure on Debian. Here is what I would normally use...

 

apt-get install \
  make \
  gcc \
  g++ \
  apache2-prefork-dev \
  libapache2-mod-php5 \
  php5-dev \
  php-pear \
  php5-sqlite3 \
  php5-gd \
  php5-cli \
  php5-tidy \
  php5-mysql \
  php-doc

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.