Jump to content

The admin cannot be reached in new installation


Marinus
 Share

Recommended Posts

Hi guys, I have just finished installing my first ProcessWire site. The site works, however, when I click the links at the end of the installation, they take me to a place like this:

http://localhost/~marinusdebeer/portfolio1/portfolio1/
 

While the actualy path should be:

http://localhost/~marinusdebeer/portfolio1/
 

Also, I cannot reach the admin, these paths don't work:

http://localhost/~marinusdebeer/portfolio1/processwire/

http://localhost/~marinusdebeer/portfolio1/wire/

I get this message in the attachment.

I hope someone knows what I did wrong, or if there is an error in the latest install.

I'm using Mac OSX Mavericks with Apache and MySQL running and ProcessWire 2.x (would be the latest one I guess).

- Marinus

post-1915-0-40762100-1384030262_thumb.pn

Link to comment
Share on other sites

Hi and welcome to PW. I noticed you are using ~user directory and also installing PW in a subdirectory. On the .htaccess file that comes with PW, look for these lines, and add the last one:

# RewriteBase /
# RewriteBase /pw/
# RewriteBase /~user/
RewriteBase /~marinusdebeer/portfolio1/
 
Link to comment
Share on other sites

Great! One step further, however, when I try to access:

http://localhost/~marinusdebeer/portfolio1/processwire/

After changing the .htaccess it now gives a 404.

I have never had any trouble with any other application :D So I must be overlooking something. With the /wire/ dir it gives a 403.

I would swear that the link http://localhost/~marinusdebeer/portfolio1/processwire/ would open the admin, right?

Link to comment
Share on other sites

That's correct that the /wire/ directory should give you a 403, since the .htaccess is protecting it (it's a feature). That also means that the .htaccess is working. But don't yet know if Apache Rewrite engine is working (it sounds like it isn't). First off, are you sure that you named your admin /processwire/ ? The last step in the installer lets you choose what you want it to be named, so just double check that's what you named it (chances are it is, since /processwire/ is the default). Next, edit your /.htaccess file and add "RewriteEngine On" at the very top of the file. Then try to load any page in your browser. If you get a 500 error, that means your Apache installation does not have Apache's rewrite engine enabled. From that point, you could figure out how to enable it in your Apache settings (httpd.conf), but I'd honestly recommend just installing MAMP. The web server software that Apple distributes with OS X is really not configured consistently with how most web hosting situations would be, whereas MAMP very similar to a typical web hosting server. I never even bother with the OS X AMP setup, and always go straight to MAMP. It's free and it takes about 1 minute to install and be up and running. 

Link to comment
Share on other sites

Hi thanks for your reply, I have run the OSX server on many computers for years on end, and have always enjoyed it to the max. However, I will try a fresh new installation to see if there is something wrong in the previous one.

I have really no problems with any of the CMS systems I'm running at the moment, and I do have the rewrite engine enabled..

Link to comment
Share on other sites

  • 8 months later...

Just a follow-up (sorry for necroing a thread):

I have managed to fix everything using this guide:

https://processwire.com/talk/topic/5797-setup-a-processwire-environment-on-a-fresh-macos-x-install/

At the time this thread was created, the above guide didn't exist yet.

Very happy that I don't have to use MAMP, much more elegant to use the Mac's insides ;)

So, finally, I can run Processwire!!!

  • Like 2
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...