Recent upgrade to php 5.2.3 require to install gd support too but it always need xorg. Here’s a lttle note on how to add gd support in php5 ports in freebsd without xorg.
1. Checking installed php extension
proxy# pkg_info | grep php5
php5-5.2.3 PHP Scripting Language (Apache Module and CLI)
php5-bz2-5.2.3 The bz2 shared extension for php
php5-ctype-5.2.3 The ctype shared extension for php
php5-curl-5.2.3 The curl shared extension for php
php5-dom-5.2.3 The dom shared extension for php
php5-ftp-5.2.3 The ftp shared extension for php
php5-iconv-5.2.3 The iconv shared extension for php
php5-imap-5.2.3 The imap shared extension for php
php5-pcre-5.2.3 The pcre shared extension for php
php5-simplexml-5.2.3 The simplexml shared extension for php
php5-spl-5.2.3 The spl shared extension for php
2. Find php5-gd and install it.
proxy# whereis php5-gd
proxy# cd /usr/ports/graphics/php5-gd && make clean
===> Cleaning for php5-gd-5.2.3
proxy# cd /usr/ports/graphics/php5-gd && make install
===> Vulnerability check disabled, database not found
===> Found saved configuration for php5-gd-5.2.3
===> Extracting for php5-gd-5.2.3
=> MD5 Checksum OK for php-5.2.3.tar.bz2.
=> SHA256 Checksum OK for php-5.2.3.tar.bz2.
===> Patching for php5-gd-5.2.3
===> Applying FreeBSD patches for php5-gd-5.2.3
===> php5-gd-5.2.3 depends on executable in : phpize – found
===> php5-gd-5.2.3 depends on file: /usr/local/bin/autoconf259 – found
===> php5-gd-5.2.3 depends on shared library: freetype.9 – not found
===> Verifying install for freetype.9 in /usr/ports/print/freetype2
wow, alot of things it will installed and tend to install xorg
After months of hard work, the PC-BSD team is pleased to make available the 1.4 BETA release. This version includes many exciting new features and software, such as:
- 3D desktop support via Beryl
- KDE 3.5.7
- FreeBSD 6.2
- Xorg 7.2
- New GUI tools & utilities
- Optional Components, and much more
PCBSD 1.4 BETA – Changelog
7-20-07 (Kris Moore)
* Updated FreeBSD base OS to 6.2-STABLE
* Updated Xorg to version 7.2
* Updated KDE to 3.5.7
* Includes support for Flash7 in native BSD browsers. (Konq, Opera, FireFox)
* Includes official NVIDIA drivers to simplify activating HW acceleration.
* Optional 3D desktop using Beryl
* Improved & Simplified system installer, now with the ability to load optional components from CD2
* NEW! Network configuration manager, including tray apps for WIFI and ethernet connections
* NEW! Firewall Manager, enables easy GUI configuration of firewall Settings
* NEW! Xorg GUI Configuration tool, allows easy setup of screen resolution & 3D support
* NEW! Added support to Add / Remove programs tool to easily install optional KDE / System components
* NEW! User manager GUI
* NEW! Battery Tray Application for Laptops
* Numerous fixes / tweaks to KDE configuration, making downloading & running PBIs easier
* Numerous other fixes / improvements to the core OS.
Download Link for ISO :
For other mirror, click here
Warning: session_save_path() [
open_basedir restriction in effect.
with error reporting set, blank page won’t give anything
A little work need to be done since session not working properly after upgrade php from php 4.4.7 to php 5.2.3.
After doing install and uninstall php5 ports in freebsd 6.2 box. I can see that error.
Googling more to find some clue, I have one plus solution.
The idea is overwrite session_path
just make sure these lines exist in vhost directive :
php_admin_value open_basedir /home/student
php_value session.save_path /home/student/session
make sure session in /home/student/session exist or make symlink to a directory.
It works now
Recent announcement from php.net about end support for php4 make me thinking about upgrading to php5.
All server already use latest php4 version php 4.4.7 with mysql support (4.0.27) and apache1.37
Upgrading start from student server :
1. Uninstall all related php4 ports
2. Install php5 ports
kongja# cd /usr/ports/lang/php5 && make clean
===> Cleaning for apache-1.3.37_4
===> Cleaning for php5-5.2.3
kongja# cd /usr/ports/lang/php5 && make install
===> php5-5.2.3 : Your apache does not support DSO modules.
*** Error code 1
Stop in /data3/ports/lang/php5.
FreeBSD 7 release will get shaping up to be an awesome release
From Jeff blog :
"Well 5 years ago this summer I stopped by evan‘s house in seattle’s university district and told him I was going to write a scheduler that saturday. Today I committed my SCHED_SMP work as SCHED_ULE and I feel it finally reflects my original hopes and intentions. Much of that time was spent getting the kernel locked well enough that we could exploit some affinity. However I have experimented with a great number of schemes and ideas in the process. For now I’m satisfied. I will take a little break and work on other projects."
Thanks for your efforts Jeff 😉
Need to order second CPU for preparing hehehehehe.