PHPCI icon indicating copy to clipboard operation
PHPCI copied to clipboard

issue when installing phpci

Open maeva123 opened this issue 8 years ago • 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

maeva123 avatar May 28 '17 18:05 maeva123

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

JoolsMcFly avatar May 29 '17 15:05 JoolsMcFly

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

maeva123 avatar May 29 '17 17:05 maeva123

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

Ooypunk avatar Jun 01 '17 12:06 Ooypunk

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.

tobiasrohde avatar Aug 02 '17 21:08 tobiasrohde

Make sure mod_rewrite is activated aside from just being enabled.

prezire avatar Aug 21 '17 23:08 prezire