Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

lowendscript related questions
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

lowendscript related questions

pikzpikz Member
edited October 2011 in General

I've used lowendscript to setup a box, but I have some problems.

I store a php application in /var/www/phpapp

I want to run the app in the browser by going to http://ip-number/phpapp

I don't want to use a domain name right now, just the ip-number.

How do I do this? This is how I have it right now:


server {
root /var/www/phpapp;
include /etc/nginx/fastcgi_php;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php last;
}
}
}

Should this work?

I also have a problem with running a php script with just this inside:

<?php phpinfo( ); ?>

It's just displaying the contents of this file. I'm using Debian 6. Is lowendscript compatible with it?

Comments

  • Your php is not set up right someplace. If the lowendscript will not run and that other script will not run it has to be your php config not the scripts. You can try another script to verify but I think your php config is not right.

Sign In or Register to comment.