Loading...
 
Skip to main content

Architecture / Installation


Only some PHP files want to be downloaded

Hi,

I've seen different threads on when PHP files are being downloaded instead of run, but none seemed to apply. First, this is an new TikiWiki installation on a new install of Ubuntu 10.04. Also, phpMyAdmin is installed and running no problem. I've even created two test DB's (one for 3.5 and one for 4.0) as well as my client's DB that I'm supposed to upgrade.

I've gone through the installation all the way through to locking the installer (table/rows seem to be created/inserted). After that, for version 3.5, most PHP pages want to be downloaded (under Firefox) or show blank (under Opera). This happens on those browsers on the local machine, and from Mac, Win and Ubuntu 9.10 machines. Their current site "renders" the PHP files fine. What is strange is that tiki-install.php still works as does tiki-admin.php. If I attempt to log in from the later page, I get a blank page again (its tiki-change_password.php when viewing properties, and for both browsers). What is also strange, if I delete the database and the lock file and rerun tiki-install.php, only tiki-install.php loads as a web-page, all the rest download.

For version 4.0, I see similar behavior, but after the database install, with the tiki-install.php that was (I assume) creating/inserting the tables/rows, and before locking the installer. When I go directly to the root directory, or to tiki-index.php, I get the downloading of the file. If I goto tiki-admin.php, and login, I get to tiki-change_password.php and then to tiki-index.php. I can then logout and then back in without issue.

Anyone know what is going on or where I should start to investigate? I'm not really a programmer, but do administrate various servers with many different kinds of apps running. I.e., I don't mind getting my hands dirty, especially on test servers. Ultimately, I'll upgrade them to which ever version tests out better. But they're happy with TikiWiki, so I'd like to show a demo to other clients.

Thanks,
Rio

Check the perms on the files or the owner. Some servers are tuning so that only the apache user can run the files
If you have script access, you can run tiki-setup.php
sylvie


trying simple response because of errors

Crap, I tried to post many times last night and got errors. So, trying again now, after editing the response.

First, thanks Sylvie.

Second, I created a new db & directory to try again. I made sure I ran setup.sh and also uncompressed directly from archive,
instead of copying from directory. In doing this, I was sure to preserve security.

Next, loading the tiki-setup.php directly redirects to tiki-install.php before running through those steps and to index.php
afterwards. Both seemt to make sense from reading the files, though I'm not a programmer. I guess that means that after
installation, that tiki-admin.php, tiki-intall.php and tiki-setup.php are running properly. But the files redirected from
them do not.

Oh, on an off chance, I did "chmod -R a+rwX *" in the installation directory. And still same behavor.

I wonder if there is something in apache2.conf, php.ini or one of the _htaccess files. But I don't know what I'm looking for... Also have to get some billable work done... Any other suggestions would be great.

Thanks again.


BTW, I get errors if I hit "Reply" to the post by Sylvie. This happens in Firefox, Chrome & Opera on Ubuntu (9.10, 10.04) and Windows XP. I will post this somewhere, but am not certain the forum or if there is a bug tracking system. Like I said, I need to get back to billable work.