PHP

How do I run a php script on linode?

2 Replies

Carefully :D

To be more specific:

Linode is selling you an unmanaged virtual private server. This is equivalent to if you were to install a Linux distribution on a spare computer at home. You then install whatever you want (within reason and ToS) on it. So there are numerous different ways to install and run PHP on your server.

While I personally prefer lighttpd, the popular web server seems to be nginx, so here's the Linode guide to installing nginx with php:

http://library.linode.com/web-servers/n … p-fastcgi/">http://library.linode.com/web-servers/nginx/php-fastcgi/

If you really want to use Apache:

http://library.linode.com/web-servers/a … 0.04-lucid">http://library.linode.com/web-servers/apache/php-cgi/ubuntu-10.04-lucid

But if you use Apache keep in mind that default config they have you use will be memory-starved unless you lower max_clients.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct