Hosting linux problem

I tried to install emoncms on a hosting service with linux, mysql etc.

I copied the filre and now the file s and directory are as follows:

https://www.dropbox.com/s/7az1q8ltc2l191f/Snap1.jpg?dl=0

 

but does not work.....

1) in root directory there are no file

2) if i move index.php from emoncms to root, the same, does not work

 

Some suggestions?

 

thanks in advance

 

Bill Thomson's picture

Re: Hosting linux problem

Robert Wall's picture

Re: Hosting linux problem

Bill, I think you've got the wrong end of the stick! Isn't what is on Dropbox a screenshot of what's on his host - the URL of which he's scribbled out in red: "www.----------i.it" ?

(But the install instructions in the .md should still help.)

Bill Thomson's picture

Re: Hosting linux problem

Took another look, and saw it in the screenshot. Thanks for the heads up! (edited my post accordingly)

 

Robert Wall's picture

Re: Hosting linux problem

Truzzman, What do you see at  www.----------i.it/emoncms 
You do not need files in root. 

truzzman's picture

Re: Hosting linux problem

The red part is the directory of my web site. According to shared hosing linux  istructions, I unzip emoncms-master.zip in home directory of my web space (the directory named as my website), renamed directory in emoncms and edit   configuration files. 

But when i connect to my website, I have a blank page with 403 error You don't have permission to access / on this server.

Robert Wall's picture

Re: Hosting linux problem

I think you might have installed emoncms one directory too high up the tree. What was the name of the emoncms directory before you changed the name?

The screenshot is a website that I manage for a friend. It does not have emonCMS. This (attached file) is what I see with FTP.

/  is the 'top' directory that only I can access via FTP.
"logs", "sessions", "stats"  are subdirectories that only I can access.
"website" is the 'home' directory of the URL that anyone can have read access to. That is where the website home page index.html is located.

If emoncms was on that website, the directory "emoncms" would be a directory beneath "website", in the same place as "cgi-bin", "img" and "test".  The permissions of all those directories are rwxr-s--- . Then you would access emoncms via your web browser with "http://www.-----i.it/emoncms"

If you installed emoncms in the directory that for me is called "website", and then you changed the name, you have probably broken your ISP's system of connecting your URL to a physical file location, and that is why you have the 403 error. You can install emoncms there, but you must not change the name of the directory, and you cannot have anything else on the website. Then you would access emoncms via your web browser with "http://www.-----i.it" and your website home page would be the start page of emoncms.

truzzman's picture

Re: Hosting linux problem

Nothing to do....

I canceled all the directories and files, put emoncms-master directory unzipped from the zip file dowloaded from https://github.com/emoncms/emoncms/archive/master.zip, renaamed to emoncms, modified settings.php with the name o my sqldb, password etc etc.

If I browse to my web site www.sXXXXXXX.it the result is: 403 Forbidden You don't have permission to access / on this server.

If I browse with www.sXXXXXX.it/emoncms : The server encountered an internal error or misconfiguration and was unable to complete your request.

In the error log I read: /web/htdocs/www.sxxxxxxiit/home/emoncms/.htaccess: Option Indexes not allowed here

 

 

 

truzzman's picture

Re: Hosting linux problem

No way to view emoncms on my site...

Now i installed on an account of altervista.org

I can login, I see tne input but it's impossible create a feed: ERROR: feed could not be created, undefined

 

I think that the problem could be the emoncmsdata directory with three subdirectory phpfina, fiva and timeseries.

 

Where I must put these directory?? in settings.php the position is /var/lib/phpfina etc..

Thanks for your patience and merry Christmas to all

Robert Wall's picture

Re: Hosting linux problem

I have emailed Trystan to ask where he intends emoncms to be installed. Have you checked and if necessary changed the file permissions and the owner for these directories?

Paul Reed's picture

Re: Hosting linux problem

Emoncms is normally installed from the root www folder, which location can change according to which server software is being used. When git cloned, all of the emoncms files will be installed within a 'emoncms' folder, hence it it accessed via www.yoursite.com/emoncms
It's usually pretty easy to identify the root www folder, as it would normally contain a index.html or similar, and its from that folder that you need to git clone.
As regards the data folders, if you follow the installation instructions, it tells you where to put them and set permissions.

Paul

Bill Thomson's picture

Re: Hosting linux problem

Now i installed on an account of altervista.org

I think that the problem could be the emoncmsdata directory with three subdirectory phpfina, fiva and timeseries.

Where I must put these directory?? in settings.php the position is /var/lib/phpfina etc..

 

With regards to your altervista.org installation, you'll need to:

  1. create a directory in your user area to put your data in
  2. create your phpfina, phpfiwa and phptimeseries data directories inside of that directory
  3. edit settings.php to match your data directory paths.

Regards,

Bill

 

truzzman's picture

Re: Hosting linux problem

In my altervista web site:

in my user/web area I have two directory: emoncms and emoncmsdata (with inside phpfina. ect etc)

Permission set to 777 on directory and subdirectory of emoncmsdata

setting.php with directory paths  /emoncmsdata/phpfina  (and the same for phpfiwa, timeseries)

 

I can login, I view the input but I'm unable to set feed (ERROR: Feed could not be created, undefined)

 

Merry Christmas

Paul Reed's picture

Re: Hosting linux problem

setting.php with directory paths  /emoncmsdata/phpfina  (and the same for phpfiwa, timeseries)

​shouldn't the location be one directory higher, and then into emoncmsdata?

 

Paul

Bill Thomson's picture

Re: Hosting linux problem

Even though the the settings.php file is located inside of the emoncms directory, as long as he has the absolute path defined - which, from his post, looks like he does - the system will know where to find his data directories.

I have the same setup (with the same data directory name of "emoncmsdata") on a server located at pacificboats.com and it works fine.

 

Paul Reed's picture

Re: Hosting linux problem

I would have opted for the relative path;

../emoncmsdata/phpfina

​Paul

Bill Thomson's picture

Re: Hosting linux problem

That'll work.

truzzman's picture

Re: Hosting linux problem

Thanks, now with the new path ../emoncmsdata, on Altervista all work fine.

On my personal web site nothing...... is a deep black night--((

 

from error log in site administration panel I can read this error:

/web/htdocs/www.mysite.it/home/emoncms/.htaccess: Option Indexes not allowed here

 

Robert Wall's picture

Re: Hosting linux problem

I think your Internet Hosting Company is causing the problem.

You could comment out that line as a test - it is there to prevent people seeing a complete list of files on your server. If it works then, put it back and ask your hosting company to fix the problem.

truzzman's picture

Re: Hosting linux problem

If I comment in .htaccess file the options -Indexes (in two place, the first at the beginning of the file and the second near the end) all works fine.

 

 

Robert Wall's picture

Re: Hosting linux problem

Options Indexes has to be enabled in the main Apache configuration file, which your Hosting Company almost certainly controls. You have proved the problem, you need to ask them to fix it.

truzzman's picture

Re: Hosting linux problem

My hosting service (italian company ARUBA) is not supporting indexes options because the directory listing is not allowed.

Robert Wall's picture

Re: Hosting linux problem

If your hosting company does not allow directory listing anyway, then you do not need Options -Indexes, because that disables the directory listing.

Comment out "Options -Indexes" and check to see if you can list the directory contents. If you cannot, all is well and you do not need "Options -Indexes".

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.