LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Apache2 + PHP5.0.3 (https://www.linuxquestions.org/questions/%2Absd-17/apache2-php5-0-3-a-345108/)

24jedi 07-20-2005 03:08 PM

Apache2 + PHP5.0.3
 
Hello and TIA

I have Apache 2.0, php 5.0.3 and mysql_4.1.11 installed on a FreeBSD 5.4-release box. All three appear to be working as I can manaully create a database, and view phpinfo() from a remote workstation to the bsd box.

My issuse is I am trying to install a CMS package called etomite . After uploading the appropriat files, I try to install from the browser but get the following error:

Fatal error: Call to undefined function session_start() in /usr/home/donmunyak/public_html/etomite/index.php on line 30

After looking at the phpinfo() again, I noticed that the section that displays seesion information is mising as well as mysql support.

After doing some searching I found on the php site that, I found that mysql for php5 is not enabled by default It should have been compile with the --with-mysql[=DIR] configure option, as well as the mysql library apparently was not bundled.

At this point "I think" I have to recompile PHP, except from what I remember, I used the pkg_add to install php5.

How do I recompile php5 for mysql support ?

Do I also need to do anything to apache or mysql ?

Thanks

24jedi 07-21-2005 03:07 PM

followup
 
Success :)

I did not have to recompile anything. The problem was I had not installed the php5-extensions.

I drilled down to /usr/ports/lang/php5-extensions
typed make & make install

This initially failed because of some dependencies (ghostscript-gnu), so I went to the ports collection for ghostscript-gnu and installed them.

Then went back to php5-extensions...make & make install.

After finishing the install I rebooted the box for good measure.

phpinfo() now lists everything I was missing and my install of etomite went successful.

Regards


All times are GMT -5. The time now is 12:25 PM.