Report this

What is the reason for this report?

What to configure in LAMP to operate similar to hosts?

Posted on September 15, 2014

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?



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.