ac46 [Solved] No session support in default PHP installation - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2010, 00:25
aurora72 aurora72 is offline
Member
 
Join Date: May 2009
Location: Türkiye
Posts: 231
Thanks: 9
Thanked 1 Time in 1 Post
Default No session support in default PHP installation

Hello

I've just installed PHP from ports collection and it installed itself as PHP 5.2.12. Now everything seems fine because when I type several basic PHP lines (e.g. <?php phpinfo(); ?>)
it works.

But later when I attempted to install a CMS program called MODx, because it contained the function session_cache_limiter() in its install script, the PHP gave this error:

Fatal error: Call to undefined function session_start() in /Library/WebServer/modx/install/index.php on line 12

and so I stopped there and examined the phpinfo page. Another PHP (5.2.12) installation which works correctly in another server (Mac OS X 10.5.8), I noticed a section called Session and it started with "Session Support: enabled"

In my FreeBSD PHP, there's no mention of such a support at the phpinfo page.

For your information here is the Configure Command of my FreeBSD server:

Code:
'./configure' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
 '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' 
'--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-
regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' 
'--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.2'
And for the purpose of comparison, here's the Configure Command of the other server (MAC OS X 10.5.8) on which PHP is working without any problem:

Code:
'/SourceCache/apache_mod_php/apache_mod_php-44.2/php/configure' '--prefix=/usr' 
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' 
'--with-apxs2=/usr/sbin/apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' 
'--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' 
'--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-
iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' 
'--with-mysql-sock=/var/mysql' '--with-mysqli=/usr/bin/mysql_config' '--with-mysql=/usr' 
'--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--without-pear'
I think I will have to recompile the PHP to support the "session" but I don't know how to do it, i.e. which configuration option to use or should I use anything else?

Thanks.
__________________
FreeBSD 7.4 on PII 400 Mhz 100 Mhz FSB, 512MB PC100 SDRAM, 80GB HDD, 100Mb Ethernet, PCI Wireless.
Reply With Quote
  #2  
Old March 23rd, 2010, 00:40
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,935
Thanks: 30
Thanked 1,932 Times in 1,351 Posts
Default

It's a config option in lang/php5-extensions.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old March 23rd, 2010, 02:05
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Or www/php5-session.
Reply With Quote
The Following User Says Thank You to aragon For This Useful Post:
realtime (March 23rd, 2013)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Installation gnome with default options vodvorezlaya Installation and Maintenance of FreeBSD Ports or Packages 4 December 24th, 2009 10:25
Does freebsd 7.2 support multi default gateway? darleter Networking 6 October 30th, 2009 10:37
[Solved] php session problem myha Web & Network Services 0 October 26th, 2009 13:09
Boot error from default installation, 7.1-STABLE florian System Hardware 2 April 2nd, 2009 09:44
rtorrent: Could not lock session directory: "/Torrents/Downloading/rtorrent.session/ mfaridi Installation and Maintenance of FreeBSD Ports or Packages 6 November 26th, 2008 08:07


All times are GMT +1. The time now is 06:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0