Elxis CMS Forum

Support => Installation => Topic started by: iung on December 08, 2008, 17:35:18

Title: install pb : page won't show but code will ! [SOLVED]
Post by: iung on December 08, 2008, 17:35:18
Hi All,
Total newbie here, your help is much appreciated. I have uploaded Elxis in a subfolder on a server running MySQL 5.0.32.
htaccess is configured with
Code: [Select]
AddHandler application/x-httpd-php5.php and
Code: [Select]
AddType text/html .php
RewriteBase points to subfolder.
I have chmoded all directories and files as specified in the Proper Installation Guide.

The DB is empty as I assumed it would be populated during install, and obviously I did not put the db name, login or server anywhere.

However when I go to mysite/subfolder where the install file is, the content of the file is displayed not in html but in text code, ie. the browser displays the code itseld (header, php etc) but not the page. So obviously that's a PHP problem : should I input the DB name, server and login details in some file ?
What did I miss ? ??? Thanks in advance !
I
Title: Re: install pb : page won't show but code will !
Post by: @ndreas on December 08, 2008, 18:06:52
Did you follow all the steps through the installation process?
Because there is a step, asking for database name, user and user password
Title: Re: install pb : page won't show but code will !
Post by: iung on December 08, 2008, 18:24:20
Actually I could not go into the install process, since the only thing I get is code...

Elxis has been installed on a server with a history of previous CMS installations running without problems; most notably Joomla, Wordpress and ModX, so I can confirm that we do have MySQL 5 properly running.
Title: Re: install pb : page won't show but code will !
Post by: iung on December 08, 2008, 18:40:22
I just ran a test page on the same folder, that works fine :
Code: [Select]
<html>
<head>
<title>PHP test</title>
</head>
<body>
<?php echo "This is a PHP script!"?>
</body>
</html>
It would not work until I changed the htaccess into an empty one, so the problem is clearly located there.
Title: Re: install pb : page won't show but code will !
Post by: @ndreas on December 08, 2008, 19:29:26
Why dont u use the .htaccess file that comes with the elxis installation files?
Title: Re: install pb : page won't show but code will !
Post by: datahell on December 08, 2008, 20:03:02
Place addhandler and addtype directives inside Elxis htaccess file and make sure they point to the right directory. Remove any other unneeded htaccess files and keep only Elxis'.
Title: Re: install pb : page won't show but code will !
Post by: iung on December 09, 2008, 11:09:23
Hmm. There is only 1 .htaccess, the one provided in the Elxis install, edited with addhandler  & addtype, located @ root.
I'm deleting all files on the server and rebooting then I'll upload again.
Title: Re: install pb : page won't show but code will !
Post by: iung on December 09, 2008, 15:08:02
 Okay, it still does not work.
There was another unused php4 DB so I deleted it just in case.
I deleted all files and folders, reupped the elxis install files from a freshly unzipped copy, at root (no subfolder anymore).
Chmoded everything.
Changed the only htaccess (by using the one provided with elxis and adding directives above)

Only thing I get is that PHP code again.


Title: Re: install pb : page won't show but code will !
Post by: iung on December 09, 2008, 15:17:34
Found it !  :P

I deleted the directives above in htaccess and added instead
Code: [Select]
SetEnv PHP_VER 5
Here we go.
Thanks for your help guys.