Page 1 of 1

Fatal Error During install

Posted: Fri Jun 08, 2007 6:58 pm
by Payload101
Script URL:internal website not available to outside
Version of script:0.94 just downloaded today
Hosting company: on localhost
URL of phpinfo.php:none
URL of session_test.php:none
What terms did you try when SEARCHING for a solution:
Failed opening required inc/header.inc.php
Write your message below:

this is a wamp 5 install on WinXP
Server Configuration
Apache version :
Apache/2.2.4 (Win32)

PHP version :
5.2.3

Loaded extensions :
bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, mbstring, mysql, mysqli, PDO, pdo_sqlite, SQLite

MySQL version :
5.0.41-community-nt

During install after filling in the step 3 form and clicking continue to step 4 it goes to blank page. Setting debug to 1 in hesk_settings.inc.php (I did go through many of the forum posts) I get the following messages.

Warning: require_once(inc/header.inc.php) [function.require-once]: failed to open stream: No such file or directory in C:\My Stuff\wamp\www\helpme\inc\common.inc.php on line 356

Fatal error: require_once() [function.require]: Failed opening required 'inc/header.inc.php' (include_path='.;C:\php5\pear') in C:\My Stuff\wamp\www\helpme\inc\common.inc.php on line 356

The file header.inc.php is in the same directory as common.inc.php, all users have complete access to files in inc/ and the files themselves.
Using the mysql cli it shows that no tables were created in the database.

Yes I know that I am a dummy, but any assistance would be appreciated.

Payload101

Fatal Error During install

Posted: Fri Jun 08, 2007 7:01 pm
by Payload101
Running the session test scripts ends with
$_SESSION['test'] is set to: TRUE

Payload101

Posted: Fri Jun 08, 2007 8:26 pm
by Klemen
I see, a little bug in the install.php file - if some database information is missing the error message doesn't show up correctly.

But nevertheless, did you enter ALL the database information in the form (host, user, pass and database name)? All these 4 fields are required, leaving any of them empty will result in an error. So make sure you have all values in all 4 fields.

Posted: Sat Jun 09, 2007 5:45 am
by Payload101
Yes I had all the values in the form page. I am able to get to the database using mysql cli and phpmyadmin.

Payload101

Posted: Sat Jun 09, 2007 1:02 pm
by Klemen
Hmm, is POST method working fine on your server? Check with these files:
http://www.phpjunkyard.com/extras/post_test.zip
What does post2.php file say after you submit the post.php form?

Also see what this install.php says:
http://www.phpjunkyard.com/extras/install.zip

Posted: Mon Jun 11, 2007 5:45 pm
by Payload101
I extracted the files to the hesk root. executed post. It had localhost in the text box I pushed submit query button and post2 returned

host is set to: localhost

If i change the text in the text box post2 returns what every was entered in the textbox.

Install.php returned the following errors imeediately.

Warning: require(../hesk_settings.inc.php) [function.require]: failed to open stream: No such file or directory in C:\My Stuff\wamp\www\helpme\install.php on line 37

Fatal error: require() [function.require]: Failed opening required '../hesk_settings.inc.php' (include_path='.;C:\php5\pear') in C:\My Stuff\wamp\www\helpme\install.php on line 37

I made the follwoing changes to the install.php script you had me upload

/* Get all the required files and functions */
require('hesk_settings.inc.php');
require('C:\My Stuff\wamp\www\helpme\inc\common.inc.php');

I got the License screen. Agreeded to the license and Screen 2 Check Setup opens and has a single error on it.

hesk_settings.inc.php file
Must be uploaded and writable by the script Not uploaded, Not writable Failed

The file is in the root directory of the hesk install. Checking the security properties of the file indicates that all users have full, read/execute/read/write access.

If I change all the relative file locations to actual in the script it completes.

Seems like it is installed now

I should have put those scripts into the install directory and maybe I would not have had to change it.

Thanks

Payload101