Welcome Guest, Not a member yet? Register   Sign In
Community Auth not working
#1

[eluser]Imran Niaz[/eluser]
I was trying to explore the Community Auth as application base, but cannot work it out. It's not installing the database and after going to http://localhost/skunkbad/ it's just mirroring the main website.
Also the "init controller" page link is broken at the documentation.

I found it difficult to get the desired output after following the configuration and installation guidelines.

Any help to run the application would be highly appreciated.
#2

[eluser]skunkbad[/eluser]
[quote author="Imran Niaz" date="1349964926"]I was trying to explore the Community Auth as application base, but cannot work it out. It's not installing the database and after going to http://localhost/skunkbad/ it's just mirroring the main website.
Also the link "init controller" page link is broken at the documentation.

I found it difficult to get the desired output after following the configuration and installation guidelines.

Any help to run the application would be highly appreciated.
[/quote]

The example application is the main website. It's actually the exact code that is running on the production server. If the link to init is broken, you need to go into config/authentication.php and set the disable_installer setting to FALSE;

Before the installer can work, you need to have created the database, and entered it's name, username, and password in config/database.php. When you have done that, init populates the database and creates your admin/users.

Let me know if you have any other questions.
#3

[eluser]Imran Niaz[/eluser]
Dear Brian,
Thank you for the quick reply.
I've done the same configurations but no avail, the init module is not executing nor it populates the database and apache goes back to main page. If i give wrong database info then it does give the database configuration error.
Is it because i'm using WAMP server on windows 7? are there any permissions required to be set on certain files.

I've also tried on CentOS with same problem, is http://localhost/skunkbad/init correct link for installation?

What we've to edit in init controller?

Thanks
#4

[eluser]skunkbad[/eluser]
[quote author="Imran Niaz" date="1350028077"]Dear Brian,
Thank you for the quick reply.
I've done the same configurations but no avail, the init module is not executing nor it populates the database and apache goes back to main page. If i give wrong database info then it does give the database configuration error.
Is it because i'm using WAMP server on windows 7? are there any permissions required to be set on certain files.

I've also tried on CentOS with same problem, is http://localhost/skunkbad/init correct link for installation?

What we've to edit in init controller?

Thanks[/quote]

If when you try to access http://localhost/skunkbad/init you are presented with the main page, it means that CodeIgniter or the .htaccess file in /skunkbad/ itself is not configured correctly. This means you will need to play around with the BASE URL and URI PROTOCOL in config/config, and perhaps the .htaccess file. In particular, the RewriteBase in .htaccess may have to be changed to /skunkbad/. I used to use wamp a couple years ago, so I know it's possible.

Edit: I just checked a backup of a wamp install I had, and confirmed that your Rewritebase should be /skunkbad/. Also, your base url probably needs to be "http://localhost/skunkbad/", and uri protocol set to "AUTO". This worked for me on wamp, so I think it should work for you.
#5

[eluser]Imran Niaz[/eluser]
Thank you Brian,

Its working now after changing the RewriteBase in .htaccess.
Kindly add this as hint in documentation for others.

Thanks
#6

[eluser]skunkbad[/eluser]
I'm glad you got it working. Thanks for your input. The issue you had is a CodeIgniter installation issue, but I do have a little comment regarding installation in a sub-directory, which is how most people use wamp. Someday you will probably want to switch to using xampp, which offers SSL support and virtual hosts.




Theme © iAndrew 2016 - Forum software by © MyBB