Posted on: 12/17/04 11:54pm
By: Anonymous (Piercedwater)
When I try to access the install.php file I am greeted with the install.php source code displaying in internet explorer. I am able to view other sites with .php pages just fine. Im running Abyss web server (latest) which supports php. I have also enabled and installed PHP on my server so Im not quite sure why it is doing this.
Any help is greatly appreciated.
john
install.php displays as text file
Posted on: 12/18/04 02:22am
By: Blaine
Create a basic php file and test that php is installed and working correctly on that webserver if you are not sure.
Create a file called test.php with the following contents
<?php
phpinfo();
?>
place that in your webroot directory and load it in your browser.
install.php displays as text file
Posted on: 12/18/04 07:28pm
By: Anonymous (Brodieman)
I have a similar problem..
I have managed (finally) to get the system installed, and have run the install.php file... But the success.php (and infact the public_html/index.php) as displaying as text...
I'm guessing (cos i know very little about PHP) that there is some configurational issue some were...
All help much appreciated
Cheers
Brodie
install.php displays as text file
Posted on: 12/18/04 09:32pm
By: Anonymous (brossow)
Bottom line: If you're seeing source code instead of a rendered web page, your web server isn't configured properly. It has nothing to do with your browser, which just shows what the server sends.
install.php displays as text file
Posted on: 12/19/04 11:38am
By: Anonymous (Brodieman)
If that's the case, why does it display some rendered php page and not others??
If i load
phpinfo();
?>
It will display the server php config page, or if a run the install.php again that will be rendered.. but as soon as I load anything else it will render the page, it will only display the php code.
When I said i thought it was a config issue, I was assuming more that I may have forgotten to set something in config.php or lib-common.php
My setting in config.php are
$_DB_host = '..co.uk'; // host name or IP address of your DB server
$_DB_name = ''; // name of your database,
// must exist before running the installer!
$_DB_user = ''; // MySQL user name
$_DB_pass = ''; // MySQL password
(of course with proper values)
// This should point to the directory where your config.php file resides.
$_CONF['path'] = '/homepages/26/d84293915/htdocs/_MainSite/_blog/'; // should end in a slash
// You only need to change this if you moved or renamed the public_html
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html'] = '/homepages/26//htdocs/_MainSite/_blog/public_html/';
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
$_CONF['site_url'] = 'http://blog.brodieman.co.uk';
// Some hosting services have a preconfigured admin directory. In that case,
// you need to rename Geeklog's admin directory to something like "myadmin"
// and change the following URL as well. Leave as is until you experience any
// problems accessing Geeklog's admin menu.
$_CONF['site_admin_url'] = $_CONF['site_url'] . '/admin';
and
// This is the return address for all email sent by Geeklog:
$_CONF['site_mail'] = 'blog@.co.uk';
// Name and slogan of your site
$_CONF['site_name'] = ' Blogs';
$_CONF['site_slogan'] = 'Yet Another Blogging site';
I have set pear to true as my server is running php 4.3.8
and if have
require_once( '/homepages/26//htdocs/_MainSite/_blog/config.php' );
in my lib-common.php file...
this just seems strange... that some php works and others bits don't
Thanks again
Stu
install.php displays as text file
Posted on: 12/19/04 12:08pm
By: Dirk
[QUOTE BY= Brodieman] this just seems strange... that some php works and others bits don't [/QUOTE]
But that has nothing to do with Geeklog. Whether PHP will be interpreted or not is entirely up to the webserver.
It sounds like yours is configured only to interpret it in certain directories. Check the webserver's configuration file (htppd.conf for Apache) and also check for local .htaccess files which may disable PHP in some directories.
bye, Dirk