Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing on a VPS
12-03-2012, 03:16 AM,
#1
Installing on a VPS
Hello,

I'm trying to install webERP on a CentOS based VPS and have completed the following steps:
  • Downloaded and unzipped webERP on the root direcotry of the VPS
  • Set permissions: 755 for the directories, 644 for the files
  • created a new mySQL database and set a new user
  • mySQL, PHP, Apache are ready installed
However, when I try to run the install script: http://ipnumber/webERP/install/index.php I end up with a 404 not found.

I even tried moving the webERP to /var/www/ but no luck. Tried different variations like moving it to /var/ but still no luck.

Would really appreciate some help on this, pls.
Reply
12-03-2012, 03:49 AM, (This post was last modified: 04-07-2013, 09:30 AM by phil.)
#2
RE: Installing on a VPS
(12-03-2012, 03:16 AM)fkasmani Wrote: Hello,

I'm trying to install webERP on a CentOS based VPS and have completed the following steps:
  • Downloaded and unzipped webERP on the root direcotry of the VPS
  • Set permissions: 755 for the directories, 644 for the files
  • created a new mySQL database and set a new user
  • mySQL, PHP, Apache are ready installed
However, when I try to run the install script: http://ipnumber/webERP/install/index.php I end up with a 404 not found.

I even tried moving the webERP to /var/www/ but no luck. Tried different variations like moving it to /var/ but still no luck.

Would really appreciate some help on this, pls.

First obvious question is the file webERP/install/index.php on your installation and check the file permissions for the web server to read it.

Thanks
Tim
Reply
12-03-2012, 05:41 AM,
#3
RE: Installing on a VPS
Thanks.

I checked the permissions, which were 644. Tried different variations: 755, 777 but no luck.
Reply
12-03-2012, 07:46 AM,
#4
RE: Installing on a VPS
Silly point, just in case by root directory you really mean the / root directory.

What is the web-root directory of your VPS web-server... check /etc/apache2/conf.d or where ever the apache config lives. looking for httpd.conf or subsidiary included conf files. The webERP files need to be under the web-server's root directory and you need to know where that is of course before you can copy the files there.
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
12-03-2012, 10:54 PM, (This post was last modified: 12-03-2012, 11:07 PM by MacPhotoBiker.)
#5
RE: Installing on a VPS
Hi,

just throwing in my two cents here. I just installed webERP on a CentOS 6 VPS, and it went very smooth.

You don´t want the installation folder in the root directory of your VPS, but as a subfolder of the folder "public_html". The root directory is not accesible via a browser. Usually this folder would placed at: "/home/user/yourusername/public_html/webERP"

What you want to do after uploading and unzipping is the following (assuming the folder is called webERP):

1) Change owner from root to the standard owner. (To see ownership via ssh, type "ls -la")

chown -R standarduserConfusedtandarduser webERP

2) Change read/write settings:

chmod -R 755 webERP

This did the job for me, I hope it helps.

Good luck.
MacPhotoBiker
Just Core Business Inc.
[url]http://www.justcorebusiness.com[/url]
Reply
12-06-2012, 02:07 AM,
#6
RE: Installing on a VPS
(12-03-2012, 10:54 PM)MacPhotoBiker Wrote: You don´t want the installation folder in the root directory of your VPS, but as a subfolder of the folder "public_html". The root directory is not accesible via a browser. Usually this folder would placed at: "/home/user/yourusername/public_html/webERP"

What you want to do after uploading and unzipping is the following (assuming the folder is called webERP):

1) Change owner from root to the standard owner. (To see ownership via ssh, type "ls -la")

chown -R standarduserConfusedtandarduser webERP

2) Change read/write settings:

chmod -R 755 webERP

This did the job for me, I hope it helps.

Good luck.
Thanks, MacPhotoBiker
I restarted the whole proceedure following your instructions (BTW I used Webmin and Filezilla for changing ownership and permissions).
My VPS came with only the root user and thus the ~/home directory was blank. Using Webmin I setup and new user & group called webERP but didn't see any public_html in there and just created one and then thereunder unzipped webERP which brought about a webERP folder, so now the path to the index.php looks:
/home/webERP/public_html/webERP/install/index.php

Yet when I take my browser to http://ipnumber/home/webERP/public_html/webERP/install/index.php

or to http://webERP/public_html/webERP/install/index.php

or to http://webERP/install/index.php

I just get a 404 not found.

BTW am I to install or setup some web server things especially to the public_html directory under ~/home/webERP/public_html so it knows where to direct web traffic?
Reply
12-06-2012, 02:54 AM,
#7
RE: Installing on a VPS
Hi fkasmani,

I am afraid you are not struggling with webERP, but more with the basic concept of a webserver.

In a nutshell, you should not be installing anything above the folder /home/user/public_html, because this area is not visible to the browser.

If you type your IP address in the browser, it points to folder /home/user/public_html. example:

If you create a file /home/user/public_html/test.txt, then you would type "ipaddress/test.txt" in your your browser to access it.

Also, there is no need to create any user or group called "webERP".

To "direct the traffic" you would usually use cpanel, and WHM (if that´s part of your VPS plan).

My advice to you would be that before you start "playing" with webERP, you should rather understand the basic concepts how your VPS works.

I am not trying to promote my business here, but I am actually a reseller for VPS plans (I am using dotblock, which is very fast and very reliable). If you would be interested in having me setting up an account (and webERP) for you, then please just let me know (via PM or email). I could set up the whole thing for you in no time, and help you to get a better understanding of how the entire server works.

Also, after doing a lot of research, I finally got to webERP, which in my point of view is one of the best (if not THE best) online ERP and accounting system available. It runs lightning fast on my server (much faster than even their own demo site).

I hope this information is of some help to you.
MacPhotoBiker
Just Core Business Inc.
[url]http://www.justcorebusiness.com[/url]
Reply
12-06-2012, 03:16 AM,
#8
RE: Installing on a VPS
(12-06-2012, 02:54 AM)MacPhotoBiker Wrote: Hi fkasmani,

I am afraid you are not struggling with webERP, but more with the basic concept of a webserver.
I understand, but I get a feeling that my VPS is not correctly configured and that's the reason I'm facing this 404 issue.

(12-06-2012, 02:54 AM)MacPhotoBiker Wrote: In a nutshell, you should not be installing anything above the folder /home/user/public_html, because this area is not visible to the browser.
I've now not placed the webERP files above the ~/home/webERP/public_html (here webERP is the user and it's under this user's public_html that I've placed the actual webERP files.

(12-06-2012, 02:54 AM)MacPhotoBiker Wrote: If you type your IP address in the browser, it points to folder /home/user/public_html. example:

If you create a file /home/user/public_html/test.txt, then you would type "ipaddress/test.txt" in your your browser to access it.
Just what I feared.
I made a test.txt file and tried accessing it from the browser, only to get a 404 file not found.

(12-06-2012, 02:54 AM)MacPhotoBiker Wrote: Also, there is no need to create any user or group called "webERP".

To "direct the traffic" you would usually use cpanel, and WHM (if that´s part of your VPS plan).

My advice to you would be that before you start "playing" with webERP, you should rather understand the basic concepts how your VPS works.

I am not trying to promote my business here, but I am actually a reseller for VPS plans (I am using dotblock, which is very fast and very reliable). If you would be interested in having me setting up an account (and webERP) for you, then please just let me know (via PM or email). I could set up the whole thing for you in no time, and help you to get a better understanding of how the entire server works.
I did actually make a wrong choice of VPS provider and my plan came with no cpanel or WHM and worst of all, I paid a year in advanceConfused (guess I'll have to struggle here).

Somehow, the VPS has to be configured to direct traffic to ~/home/webERP/public_html/
no?
Reply
12-06-2012, 03:56 AM, (This post was last modified: 12-06-2012, 03:59 AM by MacPhotoBiker.)
#9
RE: Installing on a VPS
I still believe it´s rather a rights issue, but without access to the server I can´t really know.

Here´s what I would do:

1) Put the webERP installation file at /home/webERP/public_html/webERP_4.09.1.zip

2) type: unzip /home/webERP/public_html/webERP_4.09.1.zip
this creates the folder /home/webERP/public_html/webERP

3) type: chown -R webERP:webERP /home/webERP/public_html/webERP
type: chmod -R 755 /home/webERP/public_html/webERP

4) In the address bar of you browser, type: ipaddress/webERP

or if you have a domain name configured, type: www.yourdomain.com/webERP

This should provide you the installation menu.

Then, you would first need to create a mysql database (where to install webERP), and a mysql user. This is usually being done via cpanel, or a tool called "PHPmyAdmin".

May I ask you which provider/ plan you are using?
MacPhotoBiker
Just Core Business Inc.
[url]http://www.justcorebusiness.com[/url]
Reply
12-06-2012, 11:39 PM,
#10
RE: Installing on a VPS
An update:
In Webmin I went to Servers>Apache Webserver>Existing virtual hosts
and checked Document Root for Default Server which was set to /var/www/html
So I moved webERP folder from ~/home/webERP/public_html to ~/var/www/html
Tried running http://ipnumber/webERP/install/index.php and it didn't give me a 404 error. Instead, it just displayed the core contents of the index.php file in the browser.

So guess I now have it placed in the right folder, but looks like something to do with php now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)