Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Install.php coming up garbled
Avatar
mark #1
Member since Dec 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Install.php coming up garbled
Hi all,

Some assistance please. I have extracted DokuWiki 2006-11-06 on a CentOS 4.4 box, and when opening either doku.php or install.php with a browser, it comes up very garbled. I can see text, but its all mashed together, and the almost looks like the code of the page itself.

I have set the /data and subs and /conf to 777 permisstions. I am opening these in Firefox, which in turn opens the files in SeaMonkey.

Any ideas?

Thanks,
Mark (I'm new to Doku and Linux)
Avatar
koko #2
Member since May 2006 · 161 posts · Location: Zonhoven Belgium
Group memberships: Members
Show profile · Link to this post
Hi,

Are you sure you installed PHP also?
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Avatar
mark #3
Member since Dec 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
PHP and apache are installed, though it looks like not started. I started apache up with apachectl start. The install.php is still garbled, but now if I grep for httpd, I get a response, but nothing for ps -ef|grep php. I'm looking into how that needs to be started up.

Koko, thanks for the pointer.
Avatar
koko #4
Member since May 2006 · 161 posts · Location: Zonhoven Belgium
Group memberships: Members
Show profile · Link to this post
hi,

No problem ;-)
Let us know if you encounter other problems :-D
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Avatar
mark #5
Member since Dec 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: update
Here is an update, I cannot get PHP to act properly.

I have php-4.3.9-3.22 with Apache(httpd) 2.0.52-28.ent.centos4 on CentOS4.4. Both of these were included in the OS install. When I open a .php file, at first it was just the garbled code showing up in the browser, now the browser says "The file install.php is of type application/x-httpd-php, and seamonkey does not know how to handle this file. I need to install dokuwiki, and I can't because of this setback.

Here are the changes I've made so far.

In /etc/httpd/conf/httpd.conf, added:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
PHPIniDir "/etc/httpd/conf"

This is what's in the /etc/httpd/conf.d/php.conf file (called by httpd.conf):

# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter to handle files with a .php extension.
#
<Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
        LimitRequestBody 9524288
</Files>

AddType application/x-x509-ca-cert .crt
AddType application/x-httpd-php-source .phps

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php


I have also copied the php.ini file from /etc to /etc/httpd/conf. Am I missing something?? I am really stuck, and would appreciate any help!
Thanks,
Mike
Avatar
koko #6
Member since May 2006 · 161 posts · Location: Zonhoven Belgium
Group memberships: Members
Show profile · Link to this post
hi,

I can't help you any further, but maybe there will be someone else here?
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Avatar
mark #7
Member since Dec 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: update 2
Ok, I uninstalled the PHP and Apache I had and installed php 5.2 and apache 2.2.3. Both seem to be working now, but when I try to locally open a php file (install.php for dokuWiki), I get a message from Seamonkey stating that it is of type application/x-httpd-php and does not know what to do with it, and to manually choose a program to open this file.

Any ideas?

Thanks all.
Avatar
ChrisS #8
Member since Sep 2006 · 91 posts
Group memberships: Members, Wiki Managers
Show profile · Link to this post
What do you mean by opening locally?

Are you using a file:// uri?  (this won't work)

or accessing your webserver through http://localhost/path/to/dokuwiki  (or http://127.0.0.1/path/to/dokuwiki).
Avatar
mark #9
Member since Dec 2006 · 6 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #7
Hi again,

I was attempting as ChrisS assumed, to open on the console, which was not working, but after copying the install dir. to the default web page location, and going through a browser, came up just fine. I assumed this could be done on the console (or without copying files to the apache folder), but I guess not, unless there is some other issue, but non the less, I got it working now, thanks for the tips guys!   :-)

Mark
Avatar
ChrisS #10
Member since Sep 2006 · 91 posts
Group memberships: Members, Wiki Managers
Show profile · Link to this post
PHP is essentially a server side scripting language.  So unless a (php enabled) webserver processes the page all you'll get is the the php content delivered in whatever mimetype your computer assigns to files with a ".php" extension.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-17, 08:47:44 (UTC +01:00)