Hi everyone. I am currently working on making a local web server to do testing for our site before uploading. I have never had to install or configure anything before. So this whole project is a big learning experience for me. I am currently getting an error on our test site:
Fatal error: Call to undefined function session_start()
I have installed Apache 2.2, FreeBSD 6.0, PHP5, PHP5-extensions, MySQL 5.0.17. These were installed using the ports on FreeBSD.
There have been a few people who said that session.so is not loaded, but I installed PHP5-extensions, which is what was suggested and still no luck. I checked my /php/extensions.ini file and I found the line:
extension=session.so
I checked my php.ini file and the extension_dir is set to /usr/local/lib/php/, which is where my extensions.ini file is located. When I change it to /usr/local/lib/php/20050922-debug/, which is where my .so files are located, the test site doesn't even pull up.
I installed php through the freebsd ports, so I did not use the ./configure command. I tried to do a ./configure --help, but got an error message saying that the ./configure command was not found.
Here is my ./configure on the phpinfo()
'./configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-spl' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs' '--enable-debug' '--enable-zend-multibyte' '--prefix=/usr/local' 'i386-portbld-freebsd6.0'
Is there anyway I can make sure that sessions is enabled without having to do a ./configure? Any help or direction will help me a lot.
Thank you.