The requested URL was not found on this server.
The requested URL was not found on this server.
Hello,
I installed flatpress on a raspberry and it works. Then I tried to install again in another raspberry (where apache works and I installed php8.0) but the url does not work.
How can I understand what's happened?
I installed flatpress on a raspberry and it works. Then I tried to install again in another raspberry (where apache works and I installed php8.0) but the url does not work.
How can I understand what's happened?
- fraenkiman
- Posts: 222
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: The requested URL was not found on this server.
Hello @carl078,
I/we don't know what happened.
A firewall may be blocking access to the PRi's HTTP/HTTPS port.
Frank
I/we don't know what happened.
A firewall may be blocking access to the PRi's HTTP/HTTPS port.
- What do you mean by "URL"? The home network IP under which the RPi can be reached or a domain?
- Can you call FlatPress locally from another home network device using the RPi's home network IP?
- Does FlatPress work if you call FlatPress directly on the RPi with http(s)://127.0.0.1/ +server root?
- Which FlatPress version are you using?
- What do you say in the file settings.conf.php (/fp-content/config) in the line 'www' ?
Frank
My
Re: The requested URL was not found on this server.
Hello fraenkiman and thank you for your reply.
I'll answer following the same sequence you asked me.
1) with URL I mean the home network IP. I want that the blog can be reachable only inside my intranet at home.
"The requested URL was not found on this server" is the message I receive when I try to reach the blog. It is the "classic" Not found of a website.
I have other static web pages that I can see but they are inside /var/www/html/ directory.
2) No. I can't call Flatpress in any way...at least until my last attempts.
3) No, I tried now.
4) 1.2.1 I think it is the last.
5) inside fp-content directory there is only delete.me file. While in the working flatpress that I installed in the other RPi there are many directories and file..also the one you wrote. Why ? :/ Is this directory populated only when the blog is properly installed?
I'll answer following the same sequence you asked me.
1) with URL I mean the home network IP. I want that the blog can be reachable only inside my intranet at home.
"The requested URL was not found on this server" is the message I receive when I try to reach the blog. It is the "classic" Not found of a website.
I have other static web pages that I can see but they are inside /var/www/html/ directory.
2) No. I can't call Flatpress in any way...at least until my last attempts.
3) No, I tried now.
4) 1.2.1 I think it is the last.
5) inside fp-content directory there is only delete.me file. While in the working flatpress that I installed in the other RPi there are many directories and file..also the one you wrote. Why ? :/ Is this directory populated only when the blog is properly installed?
- fraenkiman
- Posts: 222
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: The requested URL was not found on this server.
Hm, apparently the setup hasn't been run yet. Therefore try to open http(s)//setup.php in the browser.
If that doesn't work, create a new php file in the server root directory with the following code:
Then check by calling the newly created php file whether there is an output.
Best regards
Frank
If that doesn't work, create a new php file in the server root directory with the following code:
Code: Select all
<?php phpinfo(); ?>
Best regards
Frank
My
Re: The requested URL was not found on this server.
Thank you fraenkiman for your reply.
I understood that the problem was that, I don't know why, I have static web pages in /var/www/html then I had to move the flatpress extracted directory there.
Now I have another problem... I wrote an entry with a picture and I can't see neither the text nor the picture. Why?
I attach a schreenshot. If I click on the link "Benvenuti!" the link doesn't open and the blog shows the same page in the attachment.
I understood that the problem was that, I don't know why, I have static web pages in /var/www/html then I had to move the flatpress extracted directory there.
Now I have another problem... I wrote an entry with a picture and I can't see neither the text nor the picture. Why?
I attach a schreenshot. If I click on the link "Benvenuti!" the link doesn't open and the blog shows the same page in the attachment.
Re: The requested URL was not found on this server.
Is the picture in the fp-content/images folder? You can either upload it with FTP or with the uploader although if you are not connected to the internet, you probably just have to copy the image to that folder.
- fraenkiman
- Posts: 222
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: The requested URL was not found on this server.
Hello @carl078,
your new problem cannot be assigned exactly.
Are you 100% sure that Serverroot = /var/www/html? Depending on the server configuration, it can also be /var/www.
What do you say in the file settings.conf.php (/fp-content/config) in the line 'www' ?
Therefore check whether a text file "entry221006-******" already exists in Flapress-root/fp-content/content/22/10. You can open this with an editor and see if the post with your picture is included there.
Another cause may be that the owner and file rights are incorrect. All files and (sub)directories should be owned by www-data.
It is also worth checking whether all files and (sub)directories are on 0777. ...if so, then create a new test contribution and test it.
Best regards
Frank
your new problem cannot be assigned exactly.
Are you 100% sure that Serverroot = /var/www/html? Depending on the server configuration, it can also be /var/www.
What do you say in the file settings.conf.php (/fp-content/config) in the line 'www' ?
Therefore check whether a text file "entry221006-******" already exists in Flapress-root/fp-content/content/22/10. You can open this with an editor and see if the post with your picture is included there.
Another cause may be that the owner and file rights are incorrect. All files and (sub)directories should be owned by www-data.
It is also worth checking whether all files and (sub)directories are on 0777. ...if so, then create a new test contribution and test it.
Best regards
Frank
My
Re: The requested URL was not found on this server.
In settings.conf.php , www line, there isfraenkiman wrote: ↑Fri Oct 07, 2022 3:50 pm Hello @carl078,
your new problem cannot be assigned exactly.
Are you 100% sure that Serverroot = /var/www/html? Depending on the server configuration, it can also be /var/www.
What do you say in the file settings.conf.php (/fp-content/config) in the line 'www' ?
Therefore check whether a text file "entry221006-******" already exists in Flapress-root/fp-content/content/22/10. You can open this with an editor and see if the post with your picture is included there.
Another cause may be that the owner and file rights are incorrect. All files and (sub)directories should be owned by www-data.
It is also worth checking whether all files and (sub)directories are on 0777. ...if so, then create a new test contribution and test it.
Best regards
Frank
'www' => 'http://192.168.178.38/casa/'
I had to put the IP during the configurationg otherwise I had an error.
"casa" is the name of the directory inside /var/www/html
I also found the text file "entry221006-******" and It contains my post as I wrote it.
I verified that All files and (sub)directories should be owned by www-data.
all files and (sub)directories are NOT on 0777 but on 755. I changed 0755 to 0777 but I can't still my post with text and image..only the Title
I also tried to reinstall and create in another directory /var/www/html/test but the result is the same. Only a post with the title but not the test and image.
Could it be related to the /var/www/html folder?
- fraenkiman
- Posts: 222
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: The requested URL was not found on this server.
Hmm, strange. From other sources I know that FlatPress runs on PHP 8.0. I still use PHP 7.4.30 from the Raspberry OS repository.
It might make sense to uninstall the server and set it up again. I am happy to provide you with my notes.
These include Apache FPM+MySQL (Maria-DB) PHP 7. I assume that although my notes are for PHP 7.4, they will also apply to PHP 8.0.
I would be happy if you would write to me with the results of the reinstallation.
Best Regards
Frank
It might make sense to uninstall the server and set it up again. I am happy to provide you with my notes.
These include Apache FPM+MySQL (Maria-DB) PHP 7. I assume that although my notes are for PHP 7.4, they will also apply to PHP 8.0.
I would be happy if you would write to me with the results of the reinstallation.
Best Regards
Frank
My
Who is online
Users browsing this forum: No registered users and 30 guests