sbp
Newbie
Karma: 0
Posts: 8
|
 |
« on: May 29, 2006, 02:22:36 PM » |
|
Hi Sorry for my noob questions, but you have to start somewhere. I would like to use phpscheduleit for managing Squash booking in our club. I'm using windows XP SP2.
I couldn't figure out to install PHP, but mysql installed OK. So I ended up using "EasyPHP", which in no time set up the apache server (1.3.33), Mysql (4.1.9) and PHP (4.3.10) and phpmyadmin (2.6.1). Using phpmyadmin I was able to set up the Phpscheduleit database (as instructed in the: "Creating the tables
Open phpMyAdmin. Click on the database name that you just created in the left panel. Click the SQL tab at the top of the page. Open install/setup.sql, in your phpScheduleIt directory. Copy all text starting right after the line 'use phpScheduleIt;' and ending at the line just before 'grant select, insert, update, delete' and paste it into the Run SQL textbox. Click the 'Go' button."
And now I have the database in mysql and it seems to be OK in mysql.
But whenever I go to Phpscheduleit in my browser, this error pops up: Warning: main(c:\programmer\easyphp1-8\www\phpscheduleit\lib/../config/config.php): failed to open stream: No such file or directory in c:\programmer\easyphp1-8\www\phpscheduleit\lib\CmnFns.class.php on line 14
Fatal error: main(): Failed opening required 'c:\programmer\easyphp1-8\www\phpscheduleit\lib/../config/config.php' (include_path='.;C:/Programmer/EasyPHP1-8\php\pear\') in c:\programmer\easyphp1-8\www\phpscheduleit\lib\CmnFns.class.php on line 14
The same error pops up if I go to the Install directory.
What have I done wrong? Thank for any help, I have newer been working with either php or mysql before - so please be gentle. Thanks Steen
|
|
|
|
|
Logged
|
|
|
|
Nick
Administrator
Hero Member
   
Karma: 15
Posts: 5403
|
 |
« Reply #1 on: May 30, 2006, 07:20:24 PM » |
|
If you open up php.ini (commonly located at c:\windows\), see if safe_mode is on. If it is, try turning it off and restarting your webserver.
|
|
|
|
|
Logged
|
|
|
|
sbp
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #2 on: May 31, 2006, 09:54:29 AM » |
|
Thank you for your reply. I'm sorry but safe mode is OFF.
Still getting this error:
Warning: main(c:\programmer\easyphp1-8\www\phpscheduleit\lib/../config/config.php): failed to open stream: No such file or directory in c:\programmer\easyphp1-8\www\phpscheduleit\lib\CmnFns.class.php on line 14
Fatal error: main(): Failed opening required 'c:\programmer\easyphp1-8\www\phpscheduleit\lib/../config/config.php' (include_path='.;C:/Programmer/EasyPHP1-8\php\pear\') in c:\programmer\easyphp1-8\www\phpscheduleit\lib\CmnFns.class.php on line 14
STeen
|
|
|
|
|
Logged
|
|
|
|
sbp
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #3 on: June 03, 2006, 09:30:02 AM » |
|
Hi, now I have come a little further.
I managed to create the mysql database, this time without any errors using the tip from Bistro79 in the other tread.
But I can't figure out how to start the phpscheduleit - I always get this error, which I have posted above.
Steen
|
|
|
|
|
Logged
|
|
|
|
sbp
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #4 on: June 04, 2006, 11:03:26 AM » |
|
Hi As I couldn't figure out what to do with easyPHP and Phpscheduleit. I tried another php, mysql apache package XAMPP. Everything seems to work with this package, I can make a test.php file in the htdocs, which shows the function of the PHP-status. I have made the mysql database = phpscheduleit (with the modifications suggested by Bistro79). Unzipped the phpscheduleit into a subdirectory to htdocs. But as soon as I go there (localhost/phpscheduleit) I get this error. For me it seems much like the error that I got using easyphp.
Warning: require_once(C:\Programmer\xampp\htdocs\phpScheduleIt\lib/../config/config.php) [function.require-once]: failed to open stream: No such file or directory in C:\Programmer\xampp\htdocs\phpScheduleIt\lib\CmnFns.class.php on line 14
Fatal error: require_once() [function.require]: Failed opening required 'C:\Programmer\xampp\htdocs\phpScheduleIt\lib/../config/config.php' (include_path='.;C:\Programmer\xampp\php\pear\') in C:\Programmer\xampp\htdocs\phpScheduleIt\lib\CmnFns.class.php on line 14
I don't know what to change in line 14.
Any suggestions Thanks Steen
|
|
|
|
|
Logged
|
|
|
|
sbp
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #5 on: June 05, 2006, 01:10:59 PM » |
|
Hi. another update. AS I suspected that my PHP or mysql install was faulty, I checked if I was able to install another PHP-script program. I installed webcalendar 1.0.2, whic also is a php and mysql dependent program. Here I was able to installa and everything is working. But still I cant get phpscheduleit to install.
Steen
|
|
|
|
|
Logged
|
|
|
|
sbp
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #6 on: June 20, 2006, 02:41:46 PM » |
|
Hi, I just upgraded to the new version 1.2.1. But I'm still unable to start using the program. I manage to make the mysql database using the PhpMyAdmin (import setup.sql from the instal dir). The database is created without any errors and consist of 15 tables and 3 rows. Two users for the phpscheduleit database is shown: Root localhost (Global) and schedule_user localhost (database-specific).
But as soon as I try to go tho localhost/phpscheduleit in my web-browser, I still get this error:
Warning: require_once (C:\Programmer\xampp\xampp\htdocs\phpScheduleIt\lib/../config/config.php) [function.require-once]: failed to open stream: No such file or directory in C:\Programmer\xampp\xampp\htdocs\phpScheduleIt\lib\CmnFns.class.php on line 14
Fatal error: require_once() [function.require]: Failed opening required 'C:\Programmer\xampp\xampp\htdocs\phpScheduleIt\lib/../config/config.php' (include_path='.;C:\Programmer\xampp\xampp\php\pear\') in C:\Programmer\xampp\xampp\htdocs\phpScheduleIt\lib\CmnFns.class.php on line 14
Please can anybody help me solving this.
Thanks Steen
|
|
|
|
|
Logged
|
|
|
|
Nick
Administrator
Hero Member
   
Karma: 15
Posts: 5403
|
 |
« Reply #7 on: June 20, 2006, 04:27:38 PM » |
|
Is this running out of a Virutal Directory or anything? I'm sure this is something related to server configuration or else this problem would be widespread.
|
|
|
|
|
Logged
|
|
|
|
sbp
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #8 on: June 21, 2006, 05:17:47 PM » |
|
Hi, thanks for your reply. No I didn´t use any fancy stuff, virtual directory or anything. I simply installed xampp, http://www.apachefriends.org/en/xampp.html , which contains (taken from the web-page) "XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start." There is a htdocs directory, where I unzipped PHPscheduleit to, (in its own directory). I did the same with webcalendar (another php and mysql dependet program) - and had no problems. I realy dont know what to do. Steen
|
|
|
|
|
Logged
|
|
|
|
Nick
Administrator
Hero Member
   
Karma: 15
Posts: 5403
|
 |
« Reply #9 on: June 21, 2006, 06:31:33 PM » |
|
It looks like something weird with searching the filesystem for the included files. I will see if there is any way around this.
|
|
|
|
|
Logged
|
|
|
|
Nick
Administrator
Hero Member
   
Karma: 15
Posts: 5403
|
 |
« Reply #10 on: June 26, 2006, 08:03:50 PM » |
|
I'm amazed I didn't think of this earlier, but did you rename config.php.new to config.php in the config directory? This is something new for 1.2.0 to help users easily migrate changes.
|
|
|
|
|
Logged
|
|
|
|
sbp
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #11 on: June 27, 2006, 05:17:11 AM » |
|
Thank you, I think this was the problem.
After renaming the file you suggested the error does not pop up, instead a message appears: Could not load language file:
So now I have something to work on. Thank you for helping me with my stupid error.
Steen
Edit: I have been looking in the config.php, and can see that it links to the langs.php file. Inside "langs.php", I can see that this error appear when it tries to load the lanquage file. I'm from denmark, and as there is no danish lanquage file, it can't find this file. But I would be happy, if it would load the english file by default - if it couldn't find the correct lanquage file.
|
|
|
|
|
Logged
|
|
|
|
|