Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue when installing phpci #1328

Open
maeva123 opened this issue May 28, 2017 · 5 comments
Open

issue when installing phpci #1328

maeva123 opened this issue May 28, 2017 · 5 comments

Comments

@maeva123
Copy link

maeva123 commented May 28, 2017

Hi
I am trying to install phpci on my server cloudways the problem is when I use the url of my application it gives me what I have in my index.php given by cloudways and when I add public to url I get "session/login not found" please help

@JoolsMcFly
Copy link
Contributor

Make sure you have mod rewrite enabled and that Apache points to public folder.

Sent from my phone so I couldn't check against my setup

@maeva123
Copy link
Author

maeva123 commented May 29, 2017

Hi,
Yes mod rewrite is enabled and I add this to my httpd_vhots

<VirtualHost *:80>
     DocumentRoot c:/wamp/www/phptesting/public
     ServerName add.test.ra
    ServerAlias add.test.ra

     <Directory c:/wamp/www/phptesting/public >
       Options Indexes FollowSymLinks
       AllowOverride All
       Require all granted
    </Directory></VirtualHost>

But I still have the same issue

@Ooypunk
Copy link
Contributor

Ooypunk commented Jun 1, 2017

Have you copied/renamed .htaccess.dist to .htaccess? (located in c:/wamp/www/phptesting/public)

@tobiasrohde
Copy link

I have the same problem on my Ubuntu machine with Apache 2.4.18. The public folder of PHPCI is located at /var/www/html/phpci/public and I copied .htaccess.dist to .htaccess in that folder.

My VirtualHost file (phpci.localhost.conf) is placed at /etc/apache2/sites-available and in /etc/hosts phpci.localhost points to 127.0.0.1. The VirtualHost is also activated.

<VirtualHost *:80>
        ServerName phpci.localhost        
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/phpci/public/
        <Directory /var/www/html/phpci/public/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On
</VirtualHost>

When I call now phpci.localhost in the browser I receive a HTTP 302 (Moved temporarily) and I'm forwarded to localhost/phpci/session/login and receive a HTTP 404 (The requested URL /phpci/session/login was not found on this server.). The same happens when I call localhost/phpci/public directly. First I receive the HTTP 302 then the HTTP 404.

@prezire
Copy link

prezire commented Aug 21, 2017

Make sure mod_rewrite is activated aside from just being enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants