Comments (15)
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.
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.
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.
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.
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.
Did you enter appropriate data in the config.php file at $config['base_url'] = ''; // Override base URL (e.g. http://example.com)
?
from pico.
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.
There were actually two different issues being discussed in this thread:
-
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 theRewriteBase
line should be something like this:# right after RwriteEngine on RewriteBase /~Sebastian/github/pico/
-
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.
RewriteBase works!!!
http://www.weijinglin.name/labs/php/pico/sub/
from pico.
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.
Way 1
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.
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.
@netomx, the problem was lacks of the rewrite module.
from pico.
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.
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)
- Pico 3.0: Param 'date_format' from config.yml.template leads to PHP Fatal Error HOT 2
- Reverse case sensitive declaration of meta attributes is confusing HOT 5
- Twig 2.x and YAML 3.x not supported HOT 3
- Visit counter HOT 24
- Reading Time HOT 2
- Best way to add script inside <head> HOT 4
- picocms.org is down right now HOT 3
- Nice Date filter HOT 3
- pre-bundled release: Getting "HTTP ERROR 500" HOT 7
- Support for Twig extensions? HOT 3
- cookbook issue HOT 8
- [draft ] Autoload extra stuff HOT 5
- [PLUGIN] XMPP: Post to PubSub [NOT CLOSED YET] HOT 6
- Probably a wrong logical operator HOT 2
- Question: How to use page yaml-header meta-data in php for a plugin? HOT 4
- weird display of date HOT 7
- simple comment system HOT 7
- PHP pages depth & offset HOT 2
- Pico Edit says "unmaintained - archived", HOT 2
- Pico project throwing an error template. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico.