|
Nginx problems
|
|
04-22-2012, 10:31 PM
|
|||
|
|||
|
Nginx problems
I'm trying to install worpress on my site, using this tutorial : http://tech.mobiletod.com/how-to-install...ntu-10-10/
But when it installs and is running there isn't enough RAM to installl wordpress without it failing. So I tried the thread on this forum at http://freevps.us/thread-1434.html When it installs and I load the IP for the VPS, I get a 403 : Forbidden Error. I have uploaded and extracted the Wordpress files but they won't load, am I putting them in the right directory. I'm putting them in /var/www is this right? ![]() Address: cwilkinson1998.com - Server down atm. Expect big changes soon! ![]() My new YouTube Gaming Channel - http://www.youtube.com/user/thewaypointchris |
|||
|
04-22-2012, 11:01 PM
|
|||
|
|||
|
RE: Nginx problems
The "403 - Forbidden" error means that indexing without any files (without files like index.html, index.php and so on that display the sites Index) on the server is not allowed which seems to be default on Nginx. On Apache this can be disabled and you will simply see the servers direction template without any files instead of a 403 error. A 200 OK is sent when everything is alright.
The files go to /var/www/html
|
|||
|
04-22-2012, 11:16 PM
|
|||
|
|||
|
RE: Nginx problems
Try adding a index.php to the wordpress directory and put this in index.php:
<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wp-blog-header.php'); ?> |
|||
|
04-22-2012, 11:22 PM
|
|||
|
|||
|
RE: Nginx problems
The above methode is totally useless as the index.php of Wordpress already contains this code.
The only solution is to move the files from /var/www to /var/www/html as Dmms script is configurated to use /var/www/html as the root path for files (this can be changed in the Nginx config file). |
|||
|
04-23-2012, 12:17 AM
(This post was last modified: 04-23-2012 12:36 AM by aatish910.)
|
|||
|
|||
|
RE: Nginx problems
Modify line "listen 80;" into "listen 80 default_server;" to your server configuration block. You are getting this error because there is no default virtual host for Nginx to fall into. Or, it could be directory listing problem if Dmm's script creates a default server block.
Don't worry about the world coming to an end today. It's already tomorrow in Australia. |
|||
|
04-23-2012, 01:41 AM
|
|||
|
|||
RE: Nginx problems
(04-23-2012 12:17 AM)aatish910 Wrote: if Dmm's script creates a default server block. There is no server block in the file at /etc/nginx/nginx.conf Should I just add it? What do you have to include or can I have an example of one that would work on these VPSs ![]() Address: cwilkinson1998.com - Server down atm. Expect big changes soon! ![]() My new YouTube Gaming Channel - http://www.youtube.com/user/thewaypointchris |
|||
|
04-23-2012, 01:45 AM
|
|||
|
|||
|
RE: Nginx problems
Sorry, have you moved the files into /var/www/html?
I'm sure this is the only thing you need to do .My nginx.conf: Code: user nginx nginx;As you see there is nothing inside of what aatish910 has mentioned. |
|||
|
04-23-2012, 01:48 AM
(This post was last modified: 04-23-2012 01:50 AM by aatish910.)
|
|||
|
|||
|
RE: Nginx problems
Have you created a vhost using setup-vhost? Look at /etc/nginx/conf.d/mydomain.conf . If you havent created a vhost, then create it using
Code: setup-vhost mydomainDon't worry about the world coming to an end today. It's already tomorrow in Australia. |
|||
|
04-23-2012, 01:50 AM
(This post was last modified: 04-23-2012 01:50 AM by Nevil.)
|
|||
|
|||
|
RE: Nginx problems
He doesn't need a vhost, (mydomain.conf does not exist as I did not setup a vhost) and my site is working very well as you can see on serialthrilla.us.to.
|
|||
|
04-23-2012, 01:53 AM
|
|||
|
|||
|
RE: Nginx problems
I got the site working! Thanks everyone, I moved the files to /var/www/html
Also, can I ask, what is the default database username and password? I need this to complete the installation. I think the database is called mysql and the user name, 'root'? but what's the password? ![]() Address: cwilkinson1998.com - Server down atm. Expect big changes soon! ![]() My new YouTube Gaming Channel - http://www.youtube.com/user/thewaypointchris |
|||
|
« Next Oldest | Next Newest »
|
| User(s) browsing this thread: |



![[Image: CYKuu.png]](http://i.imgur.com/CYKuu.png)



