phpScheduleIt
June 20, 2013, 02:16:52 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Install Problems  (Read 5145 times)
rcole
Newbie
*

Karma: 0
Posts: 9


« on: June 21, 2007, 10:46:28 AM »

I have a local Linux server on which I have installed the xampp package instead of the package Redhat provides. Xampp has php (4,4.6, 4.4.7, 5.2.1, and 5.2.2), apache, mysql, pear, etc. installed.

Thus my directory path to my home directory is: /opt/lampp/htdocs

php and friends live in /opt/lampp/bin

and, phpSchedulit lives in /opt/lampp/htdocs/scheduler/

Since I do not have cPanel, I used the local install method and have successfully created my phpSchedulIt database using the sql script. This completed with no issues and the database exists.

php.ini has the mysqli module enabled.

I show that mysql, php, cgi, perl, and SSI are all activated but eaccellerator and Oracle extensions are not enabled..

My php.ini shows that php is not running in safe mode but I changed config.php both ways and tested with no changes.


It appears that I am having path issues from the following. Do I need to tell phpScheduleIt the base path of php?

I also have drupal installed and working on the same system.

Thanks for your time

Rod

Warning: include_once(/opt/lampp/htdocs/scheduler/lib/../lib/db/AuthDB.class.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/Auth.class.php on line 14

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/lib/../lib/db/AuthDB.class.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/Auth.class.php on line 14

Warning: include_once(/opt/lampp/htdocs/scheduler/lib/../lib/db/UserDB.class.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/User.class.php on line 15

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/lib/../lib/db/UserDB.class.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/User.class.php on line 15

Warning: include_once(/opt/lampp/htdocs/scheduler/lib/../templates/auth.template.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/Auth.class.php on line 17

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/lib/../templates/auth.template.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/Auth.class.php on line 17

Warning: include_once(/opt/lampp/htdocs/scheduler/lib/../lib/db/AdminDB.class.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/Admin.class.php on line 17

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/lib/../lib/db/AdminDB.class.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/Admin.class.php on line 17

Warning: include_once(/opt/lampp/htdocs/scheduler/lib/../lib/db/AdditionalResourceDB.class.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/AdditionalResource.class.php on line 16

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/lib/../lib/db/AdditionalResourceDB.class.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/AdditionalResource.class.php on line 16

Warning: require_once(db/GroupDB.class.php) [function.require-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/Group.class.php on line 12

Fatal error: require_once() [function.require]: Failed opening required 'db/GroupDB.class.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/Group.class.php on line
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: June 21, 2007, 01:05:29 PM »

Is there a permission issue with anything below the root phpScheduleIt directory?  I've never seen this issue before.
Logged
rcole
Newbie
*

Karma: 0
Posts: 9


« Reply #2 on: June 21, 2007, 02:17:38 PM »

Nick:

Since the server is secure, I recursively changed permissions on everything in the scheduler directory to 777 and now I have a different set of errors.

First, I am now actually displaying some html but with the following errors:

Warning: include_once(/opt/lampp/htdocs/scheduler/config/../lang/en_US.lang.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/config/langs.php on line 110

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/config/../lang/en_US.lang.php' for inclusion /scheduler/index.php

I also tried admin.php with slightly different results.

Perhaps I am not running the right script now?

Thanks
Rod
Logged
rcole
Newbie
*

Karma: 0
Posts: 9


« Reply #3 on: June 21, 2007, 02:22:25 PM »

I reran /config/config.php, then index.php, then admin.php.

This is what I am getting now. Note that some of the html is showing up now.


Warning: include_once(/opt/lampp/htdocs/scheduler/config/../lang/en_US.lang.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/config/langs.php on line 110

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/config/../lang/en_US.lang.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/config/langs.php on line 110

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/scheduler/config/langs.php:110) in /opt/lampp/htdocs/scheduler/config/langs.php on line 112

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/scheduler/config/langs.php:110) in /opt/lampp/htdocs/scheduler/config/langs.php on line 113

Warning: include_once(/opt/lampp/htdocs/scheduler/lib/db/../../templates/auth.template.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/Auth.class.php on line 17

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/lib/db/../../templates/auth.template.php' for inclusion (include_path='/opt/lampp/htdocs/scheduler/lib/pear/:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/Auth.class.php on line 17

Warning: include_once(/opt/lampp/htdocs/scheduler/lib/../templates/admin.template.php) [function.include-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/scheduler/lib/Admin.class.php on line 21

Warning: include_once() [function.include]: Failed opening '/opt/lampp/htdocs/scheduler/lib/../templates/admin.template.php' for inclusion (include_path='/opt/lampp/htdocs/scheduler/lib/pear/:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/scheduler/lib/Admin.class.php on line 21
?
?

phpScheduleIt v1.2.7
Logged
aznan
Newbie
*

Karma: 0
Posts: 44


« Reply #4 on: June 22, 2007, 02:43:57 AM »

Hi, i'm NOT a linux nor phpScheduleIt expert but from the findings (from this forum) and some others from the web i think it could be php openbasedir problem.

Frankly, i don't know what [/b]openbasedir[/b] is but no harm trying.

I got the link for you but everytime i paste it here it gives me the error msg below:-

"To combat increasing spam, URLs are temporarily disallowed."

Nick, Any idea of how to paste a URL here ?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #5 on: June 22, 2007, 09:52:04 AM »

The easiest way to paste it would just be to put spaces in between the http:// and www.

Something like http:// www. php.brickhost.com/
Logged
rcole
Newbie
*

Karma: 0
Posts: 9


« Reply #6 on: June 22, 2007, 11:58:45 AM »

Quote from: "Nick"
Is there a permission issue with anything below the root phpScheduleIt directory?  I've never seen this issue before.


Nick:

I decided to try it on a live remote server using cpanel and encountered some interesting problems. I also tried installing it on my windoze laptop on which I am running xampp in the c:/Program Files/xampp/htdocs/scheduler directory. I received a different set of errors for that one but I would like to concentrate on my real server as that is the eventual objective.

First, my host requires me to create my database directly in phpmyadmin. That was no problem and I created one called scheduler and added the users to the database as I would do with drupal or any other php code for which a database is created.

The database and username are pre-pended by a user ID, say user123_scheduler and user123_loginname.

I then attempted to run the setup.sql code in phpmyadmin which resulted in an error. After looking at the sql code (for the record, I am a beginner with both sql and php but I do some programming in bash and I administer several Linux, Solaris, HPUX, and AIX servers in my lab at work), I determined that I would simply have to modify setup.sql such that I pre-pended user123_ to all of the create statements for both tables and indexes and ran the code.

This created all of the tables for me but ended with an error due to the last several lines logging in as the user. Since I could do this through phpmyadmin later, I decided to comment out the offending lines and setup.sql completed successfully.

Since I am using a hybridized install method, I next attempted to point to the install.php file to complete the installation. This is the error I am now receiving:

Fatal error: Call to undefined function: determine_language() in /home/user123/public_html/scheduler/config/init.php on line 49

All of the directories in the scheduler directory have perms of 755 and all of the scripts and other files have perms of 644.

Do you have any suggestions?

Did I overlook setting an environment variable in one of the scripts to handle a scenario where the directories could be set before running the scripts? If there are no env variables to set, would it be possible to integrate such into the code to make the install go a bit smoother?

Thanks for your response.

Rod
Logged
rcole
Newbie
*

Karma: 0
Posts: 9


« Reply #7 on: June 22, 2007, 03:25:29 PM »

Quote from: "aznan"
Hi, i'm NOT a linux nor phpScheduleIt expert but from the findings (from this forum) and some others from the web i think it could be php openbasedir problem.

Frankly, i don't know what [/b]openbasedir[/b] is but no harm trying.

I got the link for you but everytime i paste it here it gives me the error msg below:-

"To combat increasing spam, URLs are temporarily disallowed."

Nick, Any idea of how to paste a URL here ?


Aznan:

Did you find a way to paste the link?

Thanks
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #8 on: June 23, 2007, 11:04:27 AM »

If you were able to get through the setup.sql file, then you don't have to run install.php.  The setup.sql is provided for people installing on a remote machine, while the install.php will usually work on a machine that you have control over.

Try hitting the root phpScheduleIt page and see if you can register the admin user.
Logged
rcole
Newbie
*

Karma: 0
Posts: 9


« Reply #9 on: June 24, 2007, 09:42:51 AM »

Quote from: "Nick"
If you were able to get through the setup.sql file, then you don't have to run install.php.  The setup.sql is provided for people installing on a remote machine, while the install.php will usually work on a machine that you have control over.

Try hitting the root phpScheduleIt page and see if you can register the admin user.


Nick:

I appreciate your efforts to help me get this working, so many thanks!

I tried that and got an error insufficient privileges to access database. Based upon previous suggestions, I decided to set safemode=0 and resolved that problem.

This is what I am now receiving:


Warning: main(DB.php) [function.main]: failed to open stream: No such file or directory in /home/user48/public_html/scheduler/lib/DBEngine.class.php on line 24

Warning: main() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user48/public_html/scheduler/lib/DBEngine.class.php on line 24

Fatal error: Undefined class name 'db' in /home/user48/public_html/scheduler/lib/DBEngine.class.php on line 71

This is interesting because the first warning error says that it cannot find DBEngine.class.php, yet it is there. The Fatal error would tend to indicate that it did find the file as it is telling me there is an error on line 71, which establishes the persistent connection to the database.

       // Make persistant connection to database
        $db = DB::connect($dsn, true);

It is beginning to look like this is the problem:

Warning: main() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user48/public_html/scheduler/lib/DBEngine.class.php on line 24

which, if I am reading it right, would tend to indicate that it is expecting the include path is appending /usr/lib to my server root directory.

mySQL version is 4.1.21-standard
php is php 5

here is my .htaccess file for the scheduler directory

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

And here is the one from my docroot directory:

AddType text/html .shtml html
AddHandler server-parsed .shtml
Options -Indexes FollowSymLinks Includes
Logged
aznan
Newbie
*

Karma: 0
Posts: 44


« Reply #10 on: June 24, 2007, 08:03:50 PM »

Hi, below are the link that i've mentioned on the previous post and as i have told you, i don't know much of linux and this MIGHT or MIGHT NOT help you but yet no harm trying.

Just try and see if there's any similiarities between your problem that you could relate with the problems posted on the link below:-

Note: Remember to remove the "spaces"

http:// www. php.brickhost.com/forums/viewtopic.php?p=4113&highlight=openbasedir#4113

http:// forums. theplanet.com/index.php?showtopic=49556

PS I not trying to be smart but would just like to help cause i've had problems before where people have also helped me.
Logged
rcole
Newbie
*

Karma: 0
Posts: 9


« Reply #11 on: June 28, 2007, 06:44:35 PM »

Quote from: "aznan"
Hi, below are the link that i've mentioned on the previous post and as i have told you, i don't know much of linux and this MIGHT or MIGHT NOT help you but yet no harm trying.

Just try and see if there's any similiarities between your problem that you could relate with the problems posted on the link below:-

Note: Remember to remove the "spaces"

http:// www. php.brickhost.com/forums/viewtopic.php?p=4113&highlight=openbasedir#4113

http:// forums. theplanet.com/index.php?showtopic=49556

PS I not trying to be smart but would just like to help cause i've had problems before where people have also helped me.


Aznan:

Thanks for your suggestions. I have attempted the suggestions in the links you provided but I have not been able to make any progress. I do think the problem is somehow related to this, but still no joy.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #12 on: June 29, 2007, 05:29:51 PM »

Is safe mode turned on in your php.ini file?  I'm not sure if that would cause this kind of security restrictions, though.
Logged
rcole
Newbie
*

Karma: 0
Posts: 9


« Reply #13 on: June 29, 2007, 05:42:26 PM »

Quote from: "Nick"
Is safe mode turned on in your php.ini file?  I'm not sure if that would cause this kind of security restrictions, though.


Nick:

Safe mode is off.

Do you think the problem could be related to open_basedir? It is set to null. I tried playing with it but with no luck.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!