scriptygoddess

14 Mar, 2003

Saving your PHP configure options

Posted by: dave In: Lessons learned

If you admin a (U*ix) PHP server and…
If you recompile PHP periodically and…
If you use a lot of add-ins with PHP

do yourself a favor & save your "./configure…" command to a file with:

echo ./configure -my options- > configure.sh

You can then chmod the file as you see fit so no one else can run it…

Then, when you want to reconfigure & recompile PHP, just delete config.cache & run sh configure.sh

Now back to figure out all the options I had compiled into PHP.. doh!

2 Responses to "Saving your PHP configure options"

1 | Scott Hanson

March 14th, 2003 at 10:20 am

Avatar

phpinfo() will output the configure options, Despite the quotes around each option, you can copy and paste them right onto the command line.

2 | dave

March 14th, 2003 at 10:44 am

Avatar

true, and what I'm using to rebuild my config…
The problem is that I have many third party libraries configured into PHP (mcrypt, pspell, zlib) & its a real pain to fill out the ./configure command every time..

this is really just a time saving idea…

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements