- Published:
- November 21, 2008 – 3:17 pm
- Author:
- By Dave
I recently tried to install a PHP PECL extension on a server I manage, when I received this error: [root@xxxx PDO-1.0.3]# pecl install pdo downloading PDO-1.0.3.tgz … Starting to download PDO-1.0.3.tgz (52,613 bytes) ………….done: 52,613 bytes 12 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 /usr/local/bin/phpize: /tmp/pear/temp/PDO/build/shtool: /bin/sh: bad interpreter: Permission denied Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. ERROR: `phpize’ failed [root@xxxx PDO-1.0.3]# After some searching, I figured out this is because I had set /tmp to noexec to keep any intruders from executing files from this directory. I suspect the same error will occur with any PECL extension installation. I temporarily turned it off with the command: mount -oremount,exec /tmp Now PECL installs extensions fine. Don’t forget to reenable noexec when….
Categories: Configurations,Linux,Shell
Tagged: pecl, PHP, sysadmin
- Published:
- November 13, 2008 – 12:39 pm
- Author:
- By Dave
I recently took upon the task of setting up a presentation display in the lobby of our building. This display had previously used an old computer running Windows 2000, and displayed a fairly simple PowerPoint presentation with a few frames, mostly a schedule for anyone coming into the building. We did a renovation and this display moved from a desk to on the wall. Therefore we needed to figure out a way to drive this display. We had 3 main options: Run the VGA cable upstairs to a room where the PC would sit. Purchase an expensive display driver box that could show PowerPoint along with other things like RSS feeds and video streams. I quoted this out and it was about $1800 for this fancy box. Install a small computer behind the display and use that to drive the presentation. I decided to purchase a FitPC Slim to drive….
Categories: Configurations,Other Technology,Shell,System Administration,Ubuntu
Tagged: display, lobby, power point, powerpoint, Ubuntu
- Published:
- November 1, 2008 – 9:56 pm
- Author:
- By Dave
If you are running Apache for your web server, and mod_rewrite is installed (this is a pretty typicaly module on all installations) this is actually pretty easy. RewriteEngine on RewriteCond %{HTTP_HOST} ^subdomain\.yourdomain\.com RewriteRule ^(.*)$ http://www\.yourdomain\.com/subdomain/$1 [L] Add this code to your apache configuration file – the easiest location is in the .htaccess file in your root web directory. This should redirect the browser with a 302 Found message. You can do some pretty fancy things with mod_rewrite, but this is simple and gets the job done!
Categories: Code Samples,Linux,Other Code,Software
Tagged: apache, mod_rewrite, web server