Coder Social home page Coder Social logo

404 Not found about pico HOT 15 CLOSED

picocms avatar picocms commented on August 16, 2024
404 Not found

from pico.

Comments (15)

jbleuzen avatar jbleuzen commented on August 16, 2024

If you downloaded Pico from the homepage, the .htacces needs to be created manually on your server.

Create one with the following :

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

from pico.

inhumantsar avatar inhumantsar commented on August 16, 2024

I'm also having trouble with 404s under Apache. I've got the .htaccess in place and permissions are fine all throughout. mod_rewrite is enabled and operational. See below.

$ tail /var/log/apache2/error.log
[Wed Sep 04 09:51:24 2013] [error] [client ::1] File does not exist: /var/www/keystone/maintenance, referer: http://localhost/
[Wed Sep 04 09:51:25 2013] [error] [client ::1] File does not exist: /var/www/keystone/favicon.ico
[Wed Sep 04 09:52:32 2013] [error] [client ::1] File does not exist: /var/www/keystone/maintenance, referer: http://localhost/

$ a2enmod rewrite
Module rewrite already enabled

$ cat /var/www/keystone/.htaccess 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>

# Prevent file browsing
Options -Indexes

from pico.

inhumantsar avatar inhumantsar commented on August 16, 2024

I fixed this by changing the AllowOverride setup in Apache's site config to include the mod_rewrite directives http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

from pico.

inhumantsar avatar inhumantsar commented on August 16, 2024

If you have mod_rewrite enabled then AllowOverride All should do the trick.
"FileInfo" is the one you want if you want to be specific.

Shaun Martin
[email protected] // 604 282 6361
[ linkedin http://ca.linkedin.com/pub/shaun-martin/a/583/32a/ ] [
wwwhttps://samsite.ca
] [ g+ https://plus.google.com/101809916798364924046/posts ] [
fbhttps://www.facebook.com/shaun.allen.martin]

On Thu, Sep 19, 2013 at 1:40 PM, guardadoe [email protected] wrote:

I have the same issue, I'm using WAMP. Could you please paste exactly what
you added/changed?

I tried the following and none worked:

AllowOverride AuthConfig Indexes
AllowOverride All

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-24771539
.

from pico.

miragecraft avatar miragecraft commented on August 16, 2024

Ran into a similar issue when not installed in the root directory.

Fixed it by adding the line RewriteBase /subfolder/2nd-level after RewriteEngine On.

from pico.

Snip1 avatar Snip1 commented on August 16, 2024

Did you enter appropriate data in the config.php file at $config['base_url'] = ''; // Override base URL (e.g. http://example.com) ?

from pico.

miragecraft avatar miragecraft commented on August 16, 2024

That I did, I configured the base_url as well as adding the RewriteBase in .htaccess.

Also, I changed Options -Indexes to Options +FollowSymlinks -Indexes per suggestion from this closed issue, however that didn't fix my problem while the RewriteBase rule did, but I left it in there due to laziness. Just saying on the off-chance that it's somehow making everything work.

from pico.

abely avatar abely commented on August 16, 2024

There were actually two different issues being discussed in this thread:

  1. The OP had a 404 issue because pico was installed in a userdir. For rewrite to work properly, RewriteBase should be added in .htaccess. In his case, pico was located in /home/Sebastian/public_html/github/pico, and the RewriteBase line should be something like this:

    # right after RwriteEngine on
    RewriteBase /~Sebastian/github/pico/
    
  2. inhumantsar's issue was because he installed pico in /var/www/keystone, and by default, the site setting (usually /etc/apache2/sites-enabled/000-default) does not allow override for /var/www, thus .htaccess wouldn't work. So he had to change the site setting (most likely 000-default), and enable override for the /var/www directory, like this:

    AllowOverride FileInfo Options
    

Hope it helps.

from pico.

dotku avatar dotku commented on August 16, 2024

RewriteBase works!!!
http://www.weijinglin.name/labs/php/pico/sub/

from pico.

Royaljerry avatar Royaljerry commented on August 16, 2024

Now it all seems working for me in a subfolder. What I just discovered is that if you instal Pico in a subfolder and use Alias in httpd.conf (like me, who doesn’t like to use the default root for each project) Pico dies. But as soon as I moved the stuff to www/my_subfolder/ it suddenly started working. A strange, but hopeful situation.

from pico.

alexandre-mbm avatar alexandre-mbm commented on August 16, 2024

Way 1

pico-not-found

RewriteBase /Pico/?

@dotku, how is your RewriteBase?

Way 2

<VirtualHost *:80>
        DocumentRoot "/home/alexandre/Web/Pico"
        ServerName pico
        ServerAlias *.pico
        <Directory "/home/alexandre/Web/Pico">
                Options All Includes Indexes
        </Directory>
</VirtualHost>

I try to access http://pico/sub/page

And this results in "The requested URL /sub/page was not found on this server."

Solution! In way 2.

sudo a2enmod rewrite
sudo service apache2 restart

from pico.

netomx avatar netomx commented on August 16, 2024

Have you tried enabling "AllowOverride All" in Apache?

Ernesto Villarreal

On Wed, May 21, 2014 at 4:17 AM, Alexandre Magno
[email protected]:

[image: pico-not-found]https://cloud.githubusercontent.com/assets/957501/3038077/a91f16ba-e0c8-11e3-94fc-4d4f5685c8ac.png

RewriteBase /Pico/?

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-43732230
.

from pico.

alexandre-mbm avatar alexandre-mbm commented on August 16, 2024

@netomx, the problem was lacks of the rewrite module.

from pico.

netomx avatar netomx commented on August 16, 2024

Is that new? I don't recall enabling that on my server
On May 21, 2014 12:48 PM, "Alexandre Magno" [email protected]
wrote:

@netomx https://github.com/netomx, the problem was lacks of the rewrite
module.

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-43790973
.

from pico.

alexandre-mbm avatar alexandre-mbm commented on August 16, 2024

Probably already is enabled.

alexandre$ sudo a2dismod 
[sudo] password for alexandre: 
Your choices are: alias auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi deflate dir env mime negotiation php5 reqtimeout rewrite setenvif status
Which module(s) do you want to disable (wildcards ok)?

alexandre$ 

Press ENTER for deactivate none. rewrite is in my list above.

from pico.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.