Jump to content

using PW api in shell script - "no site configuration or install.php available"


valan
 Share

Recommended Posts

I'm trying to do: exactly the same as described here - http://processwire.com/api/include/

I get: "404 page not found (no site configuration or install.php available)"

Q: why?

Note 1: may be it is because of multi-site config in index.config.php? I have read thread below but have not find the answer - 

https://processwire.com/talk/topic/7693-resolved-why-am-i-getting-this-error-no-site-configuration-or-installphp-available/?hl=%2Bsite+%2Bconfiguration+%2Binstall.php+%2Bavailable

Link to comment
Share on other sites

As it usually happens, I found answer myself.)

"*" => mysite

has been commented in index.config.php.

Let me than ask another Q - how to run shell script for non-default site?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...