PHP

...now browsing by tag

 
 

Developing with VMWare

Friday, October 31st, 2008

I got the itch recently to do some PHP developing for some photo site needs I have. Opted to try my hand with AJAX and jQuery libs while I was at it. I also wanted to use an IDE of some form, and found PHPDesigner to be a nice one. My problem is that I live in Windows these days, even though I have a hosted server running Linux. VIM is fine for quick bug fixes and changes, but this was ground-up work and not my specialty. I could have used WAMP or even cygwin, but each seems like so much work. Having played around in VMWare recently, I decided to just install Ubuntu and see if I could use that. Still had the problem of it being “remote” however. In comes the features of VMWare with it’s shared folders. The HGFS modules compiled fine in Ubuntu. I created my project files and shared them with Ubuntu. Then configured Apache inside the VM to use that share as the docroot. This way, any changes I made to the project, were already in place on the server, which is very similar to that of my hosted server.

I just feel so much more comfortable using Linux for hosted needs and using Windows as desktop needs. Silly that way I guess.

PHP and MySQL caching.

Tuesday, October 14th, 2008

Hoping to squeeze a few more cycles out of my VPS, I recently implementing PHP and MySQL caching. So far, I haven’t noticed much in the way of performance increases, but the Apache Bench test results show there is some improvement.

For PHP I used xcache and followed the guide I found here.

For MySQL I followed this guide. I only need to set the value of query_cache_size to enable it. Running mysql> SHOW STATUS LIKE ‘Qc%’; shows that it’s being used.

Source

Wednesday, September 28th, 2005

I like Open Source as much as the next geek, but I also like it when I’m shielded from the pain the way I am in Gentoo. Check this `configure` command out from a recent Solaris PHP compile:

$ ./configure \
–with-gd=/usr/local \
–with-jpeg-dir=/usr/local \
–with-freetype-dir=/usr/local \
–with-png-dir=/usr/local \
–with-xpm-dir=/usr/local \
–with-iconv-dir=/usr/local \
–enable-freetype \
–enable-jpeg \
–with-zip \
–enable-memory-limit \
–disable-debug \
–with-regex=php \
–with-pic \
–enable-exif \
–enable-filepro \
–enable-ftp \
–with-gettext \
–enable-mbstring \
–enable-sockets \
–enable-sysvsem \
–enable-sysvshm \
–with-mysql=/opt/private/path/mysql \
–with-apxs2=/opt/private/path/apache/bin/apxs \
–with-zlib \
–with-openssl=/usr/local/ssl \
–enable-ftp \
–enable-shared \
–enable-libgcc \
–prefix=/opt/private/path/php

Isn’t that just sick? Sure, I would have had to use lots of USE flags in Gentoo to make that work, but it’s still a lot less typing/headaches, not to mention the fact that it would have gone out and compiled GD and everything else for me.

Page optimized by WP Minify WordPress Plugin