Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?



Reply


Old
  Post #1 (permalink)   12-05-2012, 12:48 PM
HD Newbie
 
Join Date: Feb 2011
Posts: 11

Status: fkasmani is offline
Hello,

I've taken up a VPS and am looking at setting up webERP on it which works entirely as a web based app.

The option I took up is CentOS 6.2 minimal based and came with only the root user and thus the ~/home directory was blank.
I've setup a new user and group by the name of webERP and in that created a folder public_html
So I now have a path
Code:
~/home/webERP/public_html
In this I made a text.txt and tried to access it as follows
Code:
http://ipnumber/test.txt
which resulted in a 404 not found

Do I need to do any settings or configuration to the server to make it direct all web traffic to ~/home/webERP/public_html

BTW, the VPS came blank with no type of control panel or WHM and I installed Webmin.

Would really appreciate some help on this, pls.

Regards.
 
 


Old
  Post #2 (permalink)   12-05-2012, 01:09 PM
HD Newbie
 
Join Date: Nov 2012
Posts: 48

Status: Criot is offline
You won't be able to access files through the IP of the server I wouldn't of thought, you'll need to create a domain within webmin and add files through the file manager, then do your domain and file path in the browser (www.example.com/test.txt) - Not 100% if .txt files work though, try renaming it to a .html, .php or .htm extension.
 
 
The Following User Says Thank You to Criot For This Useful Post:
fkasmani (12-05-2012)


Old
  Post #3 (permalink)   12-05-2012, 01:24 PM
HD Newbie
 
Join Date: Feb 2011
Posts: 11

Status: fkasmani is offline
Quote:
Originally Posted by Criot View Post
You won't be able to access files through the IP of the server I wouldn't of thought, you'll need to create a domain within webmin and add files through the file manager, then do your domain and file path in the browser (www.example.com/test.txt) - Not 100% if .txt files work though, try renaming it to a .html, .php or .htm extension.
Thanks, in webmin, what's the easiest way to setup a domain and get it to ~/home/webERP/public_html

Googling around on this and have come across http://rimuhosting.com/howto/virtualhosting.jsp which i'm tying out.

Last edited by fkasmani : 12-05-2012 at 01:27 PM.
 
 
 


Old
  Post #4 (permalink)   12-05-2012, 03:51 PM
HD Newbie
 
Join Date: Nov 2012
Posts: 48

Status: Criot is offline
I usually just create a separate account to my main root account for each website.

For example WebSound on a VPS would have the account name 'WebSound' with the domain as our domain name, that way the WebSound domain would be assigned to the WebSound public_html folder and any files that are put in there (such as index.php) would be accessed through the websound domain (www.example.com/index.php)
 
 
The Following User Says Thank You to Criot For This Useful Post:
fkasmani (12-06-2012)


Old
  Post #5 (permalink)   12-06-2012, 06:43 AM
HD Newbie
 
Join Date: Feb 2011
Posts: 11

Status: fkasmani is offline
Looks like the location problem is solved and am not getting a 404 after I moved the webERP folder from "~/home/webERP/public_html" to "~/var/www/html" (as per what was stated in Apache Webserver (in Webmin). However, when I'm trying to load a .php file (eg: http://ipnumber/webERP/install/index.php) it just displays the core contents of the php file in the browser.
 
 
 


Old
  Post #6 (permalink)   12-07-2012, 02:16 AM
HD Addict
 
Join Date: Sep 2011
Posts: 141

Status: Webcs-Peter is offline
Have you already solved your issue?
 
 
 


Old
  Post #7 (permalink)   12-26-2012, 02:04 PM
HD Addict
 
Join Date: Nov 2012
Posts: 114

Status: WeLoveServers is offline
Is your issue resolved yet? If you need any further help I'm happy to give a hand.
 
 
 


Old
  Post #8 (permalink)   12-27-2012, 12:48 AM
HD Newbie
 
Join Date: Feb 2011
Posts: 11

Status: fkasmani is offline
Thanks so much for your support.

Unfortunately the issue is not solved yet - I ordered the VPS and paid one year up front so they'd installed and configure LAMP but now realise they didn't, so I've decided to re-format the VPS and install/configure LAMP myself.

Will post the updates.
 
 
 


Old
  Post #9 (permalink)   12-27-2012, 07:03 PM
Account Disabled
 
Join Date: May 2012
Posts: 969

Status: Collabora is offline
Give it a try on a windows server
 
 
 


Old
  Post #10 (permalink)   12-31-2012, 12:24 AM
HD Newbie
 
Join Date: Dec 2012
Location: Indore
Posts: 17

Status: Chetanalpha is offline
Have you already solved your problem?
 
 
 


Old
  Post #11 (permalink)   01-26-2013, 02:25 AM
HD Amateur
 
Join Date: Dec 2012
Posts: 89

Status: maplehosting is offline
Quote:
Originally Posted by fkasmani View Post
Looks like the location problem is solved and am not getting a 404 after I moved the webERP folder from "~/home/webERP/public_html" to "~/var/www/html" (as per what was stated in Apache Webserver (in Webmin). However, when I'm trying to load a .php file (eg: http://ipnumber/webERP/install/index.php) it just displays the core contents of the php file in the browser.
Is PHP installed and running?

Is the PHP file well coded?
__________________
Maple-Hosting - Devout Perfectionists Since 2008.
Netherlands Dedicated Servers & True-Unmetered™ Streaming Servers.

I rate Maple-Hosting 10/10 because the staff and the product are amazing.
 
 
 


Old
  Post #12 (permalink)   02-07-2013, 08:58 AM
Account Disabled
 
Join Date: Nov 2012
Posts: 51

Status: spenchev is offline
You can check it with typing the following command in your console:

php -v
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: