Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 06:41 pm EST
Geeklog Forums
install.php displays as text file
Piercedwater
Anonymous
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
Any help is greatly appreciated.
john
4
3
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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.
Geeklog components by PortalParts -- www.portalparts.com
Create a file called test.php with the following contents
Text Formatted Code
<?php
phpinfo();
?>
place that in your webroot directory and load it in your browser.
Geeklog components by PortalParts -- www.portalparts.com
19
3
Quote
Brodieman
Anonymous
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
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
2
3
Quote
brossow
Anonymous
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.
4
3
Quote
Brodieman
Anonymous
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
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
3
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Brodieman: this just seems strange... that some php works and others bits don't
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
5
4
Quote
All times are EST. The time is now 06:41 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content