Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-15-2009, 11:51 AM   #1
LQ Newbie
Registered: Dec 2009
Posts: 7

Rep: Reputation: 0
PHP optimization & storing compiled files.


short version:
Anyone know of a working maintained project that allows saving compiled php scripts and running my server off of that without the source scripts?


I am currently running a server with a fair bit of PHP back-end programming that I have developed. I have been researching PHP optimization to increase server performance. It seems that many of the most successful projects that speed up php do so by pre-compiling the scripts and storing the byte-code in memory.

It seems that there were a few projects that allowed you to save this compiled binary and use it instead of the plain-text scripts. This is particularly interesting to me as I am also looking to obfuscate my code before distributing it to some not-necessarily-trustworthy associates. If I could do this I could kill two birds with one stone. The only issue is that all the projects I have found that allow you to run from only compiled files without the scripts are now dead / unmaintained / defunct / dysfunctional

Anyone know of a working maintained project that allows saving compiled php scripts and running my server off of that without the source scripts?

thanks for your help.

Last edited by sanimfj; 12-15-2009 at 12:52 PM. Reason: Spellchecking
Old 12-17-2009, 01:52 AM   #2
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22

There are several byte code caches out there. Just to name a few: Zend Guard / Optimizer, eAccelerator, ionCube, APC, etc.

Keep in mind, that this is not a holy grail. If your code is slow, it will be slow with the cache as well.
Old 12-17-2009, 01:10 PM   #3
Registered: Aug 2003
Location: United States
Distribution: Ubuntu 9.10, Red Hat
Posts: 49

Rep: Reputation: 15
I'm not sure if this is anything like what you're looking for, but I overheard my coworker say "php compiler" and I remembered seeing this post. So for what it's worth check out:, and


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP: storing all data form a db row in variables with the same name as the db column konqi Programming 2 07-10-2008 05:13 AM
PHP & Apache - php files not processing aolong Linux - General 1 12-17-2006 03:09 AM
Storing numbers as 4 bytes in PHP. rblampain Programming 4 02-04-2006 10:06 PM
Optomization riscphree Mandriva 4 03-08-2005 03:01 PM
Storing compiled kernel usercsr Slackware 6 09-04-2004 01:54 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration