dancryer/PHPCI

issue when installing phpci

maeva123 opened this issue · 5 comments

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

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

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

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

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.

Make sure mod_rewrite is activated aside from just being enabled.