Question

What to configure in LAMP to operate similar to hosts?

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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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