What to configure in LAMP to operate similar to hosts?

September 15, 2014 593 views

I want to know what I need to configure to make my VPS run websites with the same support we usually have in hosts. Locally in Mac OS I have MAMP and it operates similar to client's hosts, but LAMP configurations is a little different and I missed something, I just don't know each part is missing.

At this momment I have configured:

  • htaccess support
  • php short tags turned on
  • php mycrypt installed

What more do I have to configure?

1 Answer

I recommend installing XCache as it will speed-up PHP.
yum install php-xcache // On Fedora-based (CentOS) systems
apt-get install php5-xcache // On Debian-based (Ubuntu) systems

Other than that, I don't think you are missing anything (when installing PHP in most distros, it also installs some extensions), but it will depend on what your clients will use.

Below I listed extensions used on shared hosting by Wedos hosting company:
bcmath, bzip2, calender, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, GD, gettext, gmp, hash, iconv, ImageMagick, imap, imap-ssl, ionCube Loader, json, libxml mbstring, mcrypt, mhash, mysql, mysqli, openssl, PDO, Phar, session, soap, sockets, SPL, SQLite, tokenizer, xmlrpc, xsl, zip, zlib

Have another answer? Share your knowledge.