English 中文(简体)
期待自己为PHP+MySQL开发建立一幅微小、免费的VMaware图像。
原标题:Looking to build myself a tiny, free VMWare image for PHP+MySQL Development
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations. Closed yesterday. Improve this question I m looking to build myself a VMWare image for PHP+MySQL Development. At present I m using an ubuntu image which takes ~1 GB of my hard drive space. I m looking to replace it with something smaller and lighter. So, I m curious... What do you folks use? It doesn t matter what OS / webserver as long as it s running Php 5 and MySQL. The smaller and lighter the better. Any suggestions?
最佳回答
Don t forget Slax. Build your own compressed distribution with only what you want. It works well in a virtual machine.
问题回答
Have a look at jeos - you can probably half the install size while sticking with Ubuntu. And I guess you should be able to create one with the standard server CD?
If you really want to squeeze the size, a basic Debian system should be able to fit into 250MB. You just have to take care that you unselect the "standard" set of packages while installing. Adding lighttp (approx. 1MB) and php5(-cgi ?) should only add marginally to the size of the image.
You can try Debian Etch Mini, it is only 332 MB. Please note that you may have to apt-get dist-upgrade to lenny if you need new versions of packages.
Damn Small Linux can be configured pretty small. Other suggestions would be Debian and Gentoo.
You really need to look at Tiny Core Linux. I ve built a Rebol webserver (cheyenne) image in about 15MB (including the OS). http://www.tinycorelinux.com/ Thanks! gb
There is this image http://yii.googlecode.com/files/yii-vmware-1.0.6.zip that contains php 5.2.3, postgresql, lighttpd. It is pretty small, about 17MB download, it was built using buildroot.uclibc.org
I know you said a VMWare image, but just thought I would let you know about XAMPP They have GNU/Linux, Windows & Mac Versions. From the website (Windows Version) The distribution for Windows 98, NT, 2000, 2003, XP and Vista. This version contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, Ming, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql. Full Windows version is ~35Mb download. Again, sorry if this does not meet your exact needs, but may contain some useful information for you.
From the asker: Slax is the one I settled for; because it fit my needs. It s a very customizable boot-from cd linux distribution. Means that I can maintain several virtual machines which boot from the same iso image but have different states. . A couple of the other suggestions I thought were great: DSL : is a nice timy platform: a ready vmware image is avalable for download. Just over 50 MB. I didn t try installing xampp over it, but it should be easy enough. jeos: looks great as well, but there s no pre-existing vmware image... which is why I didn t use it myself The debian net-install was also a tiny and great candidate. Thoughtpolice has this and several other linux vmware images for ready download. . Also there are three ready {x}amp images also available at the bottom of this page: http://www.fosstools.org/ ; If you re looking for an image with no additional configuration required.
If you re willing to build yourself an image, there s VMware s Photon and its direct parent, Linux From Scratch ("LFS"). LFS is very intensive in terms of time to make and not so small for the first result, has no package management, but can be made tiny (keep a "master image", clone to a "child" and strip what you don t need, such as the development tools and kernel modules). It s labour intensive (everything is compiled from source) but very rewarding (you learn a lot). Depending of your exact needs, you can select features in "BLFS" and "Hardened LFS" for enhanced security. in VMware environments, SSHd is optional... Photon is its VMware specialised version, and it s not that small. However, it s (kind of) guaranteed to work and it contains everything you could need for an appliance and its pretty easy to strip to tailor it to your exact needs. For the web server, lighthttp is good enough. Apache is clobbered with lots of options you probably won t need and that take a lot of space (mod_rewrite is one of them, mod_ssl is pretty fat if you don t need https). If you are thinking of putting it into production, you may want to add NGinX to your list of software, especially if you need https (which is taken care of at the level of NGinX instead of the actual web server). Also, you may want to have a "stripped" version of the appliance (the production one on which you deploy the actual appliance) and a "full-fledged" version with all the network tools (tcpdump, X and the full IDE suite...) on which you develop and debug the software. Last but not least, make sure to create your VM with "thin-provisioning" disks and make everything "LVM". I know it s "fake", but it s ideal for distribution. Create a central repository to store the precompiled binaries so you can download and update your components without storing them on your base appliance.




相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签