ac46
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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' 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' Thanks.
__________________
FreeBSD 7.4 on PII 400 Mhz 100 Mhz FSB, 512MB PC100 SDRAM, 80GB HDD, 100Mb Ethernet, PCI Wireless. |
|
#2
|
||||
|
||||
|
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. <--- |
|
#3
|
|||
|
|||
|
Or www/php5-session.
|
| The Following User Says Thank You to aragon For This Useful Post: | ||
realtime (March 23rd, 2013) | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |