Why can't i install Piwik?

I can’t start the installation script. If I go to mydomain.com/piwik it just redirects me to the homepage. However, I can go to mydomain.com/piwik/tests for example and I can read the readme.txt fine.

Same thing happens when I create a subdomain like piwik.mydomain.com

try to go to mydomain.com/piwik/index.php ?

[quote=matt]
try to go to mydomain.com/piwik/index.php ?[/quote]

Straight to the homepage still.

I then disabled every single plugin and used the default WordPress theme (TwentyTwelve) just to be sure that none of my plugins or theme is interfering but still no luck. This time, instead of being redirected to the homepage, I get a blank page. But, again, if I go to mydomain.com/piwik/tests or piwik.mydomain.com/tests I see the files inside the folder:

Parent directory
Readme.txt

Is there any way to “force” the script? Like via a MySQL query or something?

no it should work directly, even if you have php4 it should display a welcome page. sorry not sure maybe ask your web host or check your server error logs ?

[quote=matt]
no it should work directly, even if you have php4 it should display a welcome page. sorry not sure maybe ask your web host or check your server error logs ?[/quote]

My webhost is HostGator. There are no recent entries in the error log.

If you are using hostgator you may have an issue with the .htaccess file. check to see you have one in the main piwik folder itself.

[quote=lesjokolat]
If you are using hostgator you may have an issue with the .htaccess file. check to see you have one in the main piwik folder itself.[/quote]

I copied the .htaccess file in the root folder into the piwik folder but I still couldn’t get the installation script to run. Now that I am using the default WordPress theme and have disabled all the plugins, I get a “Page Not Found” instead of being redirected to the homepage whenever I try to go to:

/piwik
/piwik/index.php

It’s weird though how I can access /piwik/tests fine including the files inside it. In fact, I can access every single folder and see the contents of that folder except the main /piwik folder.

ok sounds like the .htaccess file is the issue.

if you want to PM the content of that file(commenting out anything you feel uncomfortable with and I can take a look. In essence just copying it isnt always ok as the structure one level down would require a change or modification.

[quote=lesjokolat]
ok sounds like the .htaccess file is the issue.

if you want to PM the content of that file(commenting out anything you feel uncomfortable with and I can take a look. In essence just copying it isnt always ok as the structure one level down would require a change or modification.[/quote]

This is what I have in my .htaccess:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

That is it. I copied directly including the formatting. I think this is the default .htaccess that everyone gets when they install WordPress.

I think you should try and change this to reflect the path of the root httpdocs folder. try this to see if it helps.

BEGIN WordPress

RewriteEngine On RewriteBase /httpdocs/(whatever your root web folder is not just root folder) RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

[quote=lesjokolat]
I think you should try and change this to reflect the path of the root httpdocs folder. try this to see if it helps.

BEGIN WordPress

RewriteEngine On RewriteBase /httpdocs/(whatever your root web folder is not just root folder) RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress[/quote]

Hi, same thing - I get a “Page Not Found” error when I try to go to mydomain.com/piwik/

This is what I did to my .htaccess:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /httpdocs/public_html/mydomain.com
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


I then tried deleting everything between ‘# BEGIN’ and ‘# END’ and I got an Internal Server Code 500 error LOL! Now I am back to using the default .htaccess without the /httpdocs modification. Website works, but no piwik. :frowning:

How about just use the mydomain.com or /public_html/mydomain.com. The 500 error is an internal redirect issue with the .htaccees off. Are you virtual hosting this domain in hostgators panel?

BEGIN WordPress

RewriteEngine On RewriteBase /mydomain.com RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

Still “Page Not Found”

I tried these:

  • RewriteBase /public_html/mydomain.com
  • RewriteBase /mydomain.com

I don’t know what you mean by “Are you virtual hosting this domain in hostgators panel?” I have a shared hosting plan with HostGator - Web Hosting | Shared cPanel Web Hosting - HostGator (the ‘Baby Plan’) - and I have this domain added as an ‘Addon Domain’ using cPanel.

ok i see. In cpanel what is the root directory to your domain web site? That root directory should be the path in the .htaccess file. There was also someone else in the forums who had a hostgator addon domain that went through alot to try and make things work. Do a forum search for it as I dont remeber the title, may give you insight.

[quote=lesjokolat]
ok i see. In cpanel what is the root directory to your domain web site? That root directory should be the path in the .htaccess file. There was also someone else in the forums who had a hostgator addon domain that went through alot to try and make things work. Do a forum search for it as I dont remeber the title, may give you insight.[/quote]

I think I found the thread - 301 Moved Permanently

I’ll read that and see what happens. I will also try changing the .htaccess path to the other domains in my account (there are only 4 others). The original domain that I signed up with is no longer active/registered so now I don’t know which one is the “main” domain.

With Hostgator see: http://www.iwebdigest.com/176/setup/piwik-not-tracking/