Problem with domain, nginx.. Any help?

Post Reply
RebeckaJ
Newbie
Newbie
Posts: 7
Joined: Fri Feb 05, 2021 8:38 am
Location: Kristianstad
Station model: Netatmo
Software: WU,PWS,Aeris

Problem with domain, nginx.. Any help?

Post by RebeckaJ » Tue Feb 09, 2021 9:34 am

I have problem with my configuration and install with Meteotemplate.

I use nginx on my Raspberry pi 4.

I also have weewx on same Raspberry pi 4.

My hostserver is on egensajt.se and its a paid server.
I have create a domain there with domain name myweather.se and sub domain www.myweather.se

My hostserver also incl database with Sql, cronjobs and phpmyadmin.

I had also created two nginx config with one for my weewx on port 80 that is configuring on sites_enabled/default

and one with sites-enabled/myweather.se with php and serverroot to the meteotemplate folder with port 8080
And checked that is right for php config and all is correct.

But nginx says file not found on myweather.se when i type in myweather.se/template/install/setup.php

It works only if i use my private ip but if i try to connect my host sql i got refused even when i type correct info.

I dont know either if my host should only be as dns or if it should be as website.

I feel totally lost and stuck.

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Problem with domain, nginx.. Any help?

Post by davidefa » Tue Feb 09, 2021 2:30 pm

I don't understand completely what you are saying, but I can't connect to http://www.myweather.se. I'll start sorting out this problem
Image

RebeckaJ
Newbie
Newbie
Posts: 7
Joined: Fri Feb 05, 2021 8:38 am
Location: Kristianstad
Station model: Netatmo
Software: WU,PWS,Aeris

Re: Problem with domain, nginx.. Any help?

Post by RebeckaJ » Tue Feb 09, 2021 5:00 pm

To formulate it short when i try to connect to meteotemplate via my own domain nginx says file not found.

I can only reach meteotemplate via my private ip.

And even if i change my page url in setup.php to my own domain i have i dont work.

And also i cant get access to my own hosts sql database via meteotemplate when i write host, user etc. It says it cant find the host

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Problem with domain, nginx.. Any help?

Post by davidefa » Tue Feb 09, 2021 6:00 pm

Ok, now I can access your site only on the following address: https://myweather.se ( from http://myweather.se I'm redirected to https://myweather.se ), where I can see the welcome page
I can't access any other page in template or in any other subdirectory
- are files/folders permissions ok? ( maybe in the control pane there is a tool to restore permissions )
- is php enabled?
- put a simple 'phpinfo.php' anywhere and execute it ( attached ), it should give a page full of informations.
Attachments
phpinfo.zip
(283 Bytes) Downloaded 57 times
Image

RebeckaJ
Newbie
Newbie
Posts: 7
Joined: Fri Feb 05, 2021 8:38 am
Location: Kristianstad
Station model: Netatmo
Software: WU,PWS,Aeris

Re: Problem with domain, nginx.. Any help?

Post by RebeckaJ » Wed Feb 10, 2021 7:47 am

I come to samy Welcome page but from there i dont know how to do.

Phpmyadmin is installed on my Raspberry pi 4 and i use Nginx.

I will check the php you give as file when i are at my Raspberry pi

RebeckaJ
Newbie
Newbie
Posts: 7
Joined: Fri Feb 05, 2021 8:38 am
Location: Kristianstad
Station model: Netatmo
Software: WU,PWS,Aeris

Re: Problem with domain, nginx.. Any help?

Post by RebeckaJ » Wed Feb 10, 2021 7:51 am

I forgot.

Php is also install on my host and sql find mariadb on linux when i log in at my hosts phpmyadmin.

But i cant create user.
I only created a empty database name in it.
From there im stuck.

RebeckaJ
Newbie
Newbie
Posts: 7
Joined: Fri Feb 05, 2021 8:38 am
Location: Kristianstad
Station model: Netatmo
Software: WU,PWS,Aeris

Re: Problem with domain, nginx.. Any help?

Post by RebeckaJ » Wed Feb 10, 2021 8:34 am

I will for i while use a free domain temporarily because i have problems with my main hostserver because someone has logged in withput my permission there so they have temporarly closed my account because of this.

So i need to use own SQL database and domain.
So now i need to set up cronjobs and figuring out how because my Netatmo block dont update at all

Post Reply