mark
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)
koko
Hi,
Are you sure you installed PHP also?
mark
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.
koko
hi,
No problem ;-)
Let us know if you encounter other problems :-D
mark
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
koko
hi,
I can't help you any further, but maybe there will be someone else here?
mark
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.
chriss
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).
mark
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
chriss
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.