RSS
 

Posts Tagged ‘ubuntu’

Howto: Enable PCNTL in Ubuntu PHP installations

30 Jul 2010

PCNTL in PHP allows for some handy advanced “trickery” using the OS process functions inherent in Linux (*nix?).  I believe some features are available in Windows, but I know for certain that pcntl_fork() is not.

Anyway, it is not enabled by default, so if you want to take advantage of the functions on your Ubuntu LAMP server, you might spend hours searching the web for that magic aptitude command.  But, as far as I can tell, it doesn’t exist.

Luckily, I stumbled across this article on the Ubuntu forums, so I’m dedicating a post here with the hopes that other will find it more easily.

Please note that you’ll probably need build-essentials and a few other source compilation basics, but as long as you have that, the following code will get you what you want.

First, in your home directory:

mkdir php
cd php
apt-get source php5
cd php5-(WHATEVER_RELEASE)/ext/pcntl
phpize
./configure
make

Then:

cp modules/pcntl.so /usr/lib/php5/WHEVER_YOUR_SO_FILES_ARE/
echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini

FYI: “make install” does not appear to put the files in the correct place.

Btw, please direct any thanks/praise to skout23 on the Ubuntu forums.

 
 

Verizon Wireless Pantech UM-150 on Ubuntu 8.04 Hardy Heron

15 Feb 2009

This is easy enough, but since I recently did it and had difficulty finding definite information I thought I would post it myself.

Truth is, it’s a piece of cake. First things you need to know:

Your modem is just that — a modem, and it is connecting like any dialup modem.

Dialup number: #777
Username: xxxxxxxxxx@vzw3g.com (replace xxxxxxxxxx with you 10-digit phone number associated with your modem)

Plug your UM150 into your USB port. Ubuntu should detect it as /dev/ttyACM0

Now, simply run “sudo wvdialconf”

It will detect your modem and do pretty much all the configuration.

Edit /etc/wvdial.conf — put in the appropriate phone number, your username, and anything as the password (I used “abcd”).

Now, run “wvdial”

and you’re golden. Good luck!