index.php/install not working

Asked by Rick Thomas

I have installed authpuppy and everything seemed to go fine, but when I go to the localhost/index.php/install page and click on the OK button, I get a 404 error for the /install URL. What am I missing?

Question information

Language:
English Edit question
Status:
Answered
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Monpelaud (monpelaud) said :
#1

I have the same issue !
I don't find any index.php or install.php files in /var/www/authpuppy/ repository.

Best Regards

Revision history for this message
Monpelaud (monpelaud) said :
#2

Hi,
Sorry I didn't see the index.php file in /var/www/authpuppy/web/.

When I go to the url:
http://authpuppy.localdomain/index.php/install
I get the install page but when I click on the Ok button, I get this error:
"Not Found
The requested URL /install was not found on this server.
Apache/2.2.14 (Ubuntu) Server at authpuppy.localdomain Port 80"

Best Regards

Revision history for this message
gbastien (gbastien02) said :
#3

Is the error page an apache page or a symfony page (more attractive page)?

If it is an apache file, then the problem might be one of apache for symfony. Make sure your site configuration looks like the one documented in page http://www.authpuppy.org/doc/Getting_Started, section Configuring Apache. Also make sure that you have all the prerequisites to run symfony (from the wiki page, you can download a script to run on a your server that will tell you if you miss anything.

If it is a symfony page, then I will need to investigate.

Revision history for this message
Monpelaud (monpelaud) said :
#4

Hi,

1- It's an apache error "404 Not Found".

2- Here my virtual host configuration:

VirtualHost authpuppy:80>
       ServerAdmin webmaster@localhost
       ServerName authpuppy.localdomain
       ServerAlias authpuppy.test

       DocumentRoot /var/www/authpuppy/web
       DirectoryIndex index.php
       <Directory /var/www/authpuppy/web/>
               Options Indexes FollowSymLinks MultiViews
               AllowOverride All
               Order allow,deny
               allow from all
       </Directory>

       Alias /sf /var/www/authpuppy/lib/vendor/symfony/data/web/sf
       <Directory "/var/www/authpuppy/lib/vendor/symfony/data/web/sf">
               AllowOverride All
               Allow from All
       </Directory>

       ErrorLog /var/log/apache2/authpuppy/error.log

       # Possible values include: debug, info, notice, warn, error, crit,
       # alert, emerg.
       LogLevel warn

       CustomLog /var/log/apache2/authpuppy/access.log combined

  </VirtualHost>

3- For me all symphony prerequisites are ok:
Here the result for the url:
http://authpuppy.localdomain/check_configuration.php

********************************
* *
* symfony requirements check *
* *
********************************

php.ini used by PHP: /etc/php5/apache2/php.ini

** Mandatory requirements **

  OK PHP version is at least 5.2.4 (5.3.2-1ubuntu4.2)

** Optional checks **

  OK PDO is installed
  OK PDO has some drivers installed: mysql
  OK PHP-XML module is installed
  OK XSL module is installed
  OK The token_get_all() function is available
  OK The mb_strlen() function is available
  OK The iconv() function is available
  OK The utf8_decode() is available
  OK A PHP accelerator is installed
  OK php.ini has short_open_tag set to off
  OK php.ini has magic_quotes_gpc set to off
  OK php.ini has register_globals set to off
  OK php.ini has session.auto_start set to off
  OK PHP version is not 5.2.9

4- I have install authpuppy by using this url:
"http://authpuppy.localdomain/frontend_dev.php/install"

5- Now for login I must use this url:
http://authpuppy.localdomain/frontend_dev.php/admin

Thanks for your help and your very good works

Revision history for this message
gbastien (gbastien02) said :
#5

So http://authpuppy.localdomain/frontend_dev.php/install did work all right but not with index.php...

Maybe I packaged it wrong. Which package are you using? core or full?

If you have access to a command prompt, you may manually do a clear-cache to solve the problem:
:$ cd /var/www/authpuppy
:$ ./symfony cc

Revision history for this message
Monpelaud (monpelaud) said :
#6

First I get files with: "bzr branch lp:authpuppy", after I download the archive "authpuppy-0.1.0-alpha_full.tgz".
The issue is the same with the two packages.

The command "/var/www/authpuppy/symfony cc" does not resolve the problem.

With the url "http://authpuppy.localdomain/" I get the Welcome page but when I click on the link "Administrative login" I get an 404 Not Found (http://authpuppy.localdomain/admin).
The url "http://authpuppy.localdomain/frontend_dev/admin" works fine.

Revision history for this message
gbastien (gbastien02) said :
#7

I get a symfony 404 error when logging in, the url giving the error says http://authpuppy.localdomain/uploads/assets/header.png

This is due to the file header.png not being there, both in the archive and the bzr code...

But I am logged in anyway. Is it the same problem that you have?

Revision history for this message
Monpelaud (monpelaud) said :
#8

No, for me it's not a symphony 404 error but an apache 404 error.
I'm not logged when I get this error, I'm just on the welcome page.
To login I must use the url "http://authpuppy.localdomain/frontend_dev.php/logindoctrine". It's the only way for me to get the "Administrative signin" screen.

Revision history for this message
gbastien (gbastien02) said :
#9

And does explicitly putting the index.php page work? As in http://authpuppy.localdomain/index.php/logindoctrine

Revision history for this message
Monpelaud (monpelaud) said :
#10

Yes, with "http://authpuppy.localdomain/index.php/logindoctrine" I get the "Administrative signin" screen, but when I validate "admin/admin" as username/password I get this error:
Not Found
The requested URL /logindoctrine was not found on this server.
Apache/2.2.14 (Ubuntu) Server at authpuppy.localdomain Port 80.

Revision history for this message
gbastien (gbastien02) said :
#11

Sounds like apache is not rewriting pages to index.php/something.

Make sure you have mod_rewrite enabled (sudo a2enmod rewrite) and that the authpuppy/web/.htaccess file is present and is as follows:

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  # RewriteBase /

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteCond %{REQUEST_URI} !\.php$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

You may try to uncomment the RewriteBase line and see how it goes.

Revision history for this message
Monpelaud (monpelaud) said :
#12

Effectively "mod_rewrite" was not enabled !
Now "http://authpuppy.localdomain/logindoctrine" works fine, I can login ...
Many thanks for your help.

Just a little remark, the link of "Administrative login" on the welcome page is "http://authpuppy.localdomain/admin" which doesn't display "Administrative signin" screen. Why not "http://authpuppy.localdomain/logindoctrine" ?

Best regards

Revision history for this message
Wadih (wadih) said :
#13

Hi Monpelaud,

If everything is ok now, can you please mark the question as "Solved"

Thanks
Wadih

Revision history for this message
Monpelaud (monpelaud) said :
#14

Hi,

Sorry, but I haven't access to the buton "This solve my problem".

Best regards

> Message du 02/02/11 06:49
> De : "Wadih"
> A : <email address hidden>
> Copie à :
> Objet : Re: [Question #121020]: index.php/install not working
>
> Question #121020 on AuthPuppy changed:
> https://answers.launchpad.net/authpuppy/+question/121020
>
> Wadih posted a new comment:
> Hi Monpelaud,
>
> If everything is ok now, can you please mark the question as "Solved"
>
> Thanks
> Wadih
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Can you help with this problem?

Provide an answer of your own, or ask Rick Thomas for more information if necessary.

To post a message you must log in.