LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-14-2008, 03:15 PM   #1
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Rep: Reputation: 15
Parse error: parse error, unexpected '/' - can anyone see the error in this code?


Sorry this is probably a very stupid question but I've been trying for about 3 hours to install xrms - an open source CRM. I uploaded all the files but before installing you must edit this particular file to the correct path. I keep getting this error: Parse error: parse error, unexpected '/' in /etc...

The particular folder they ask for is in /xrms/include


I must be missing something... Here is the code:
// This path should be the full filesystem path to the include directory for XRMS
// include trailing slash in path
$include_directory = xrms/include/;

// Report all errors except E_NOTICE
// This is the default value set in php.ini


I have tried /xrms/include/; /xrms/include; etc... Still no luck. Any tips really appreciated!
 
Old 01-14-2008, 05:33 PM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,135

Rep: Reputation: 230Reputation: 230Reputation: 230
Try this:
$include_directory = "xrms/include/";
 
Old 01-15-2008, 03:30 AM   #3
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
I've tried all combinations with " but still doesn't work...
 
Old 01-15-2008, 03:45 AM   #4
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 241Reputation: 241Reputation: 241
did you actually have a /xrms/include/ directory. Maybe you need to create it first. Just a guess
 
Old 01-15-2008, 11:42 AM   #5
braverock
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by v@ny@ View Post
Sorry this is probably a very stupid question but I've been trying for about 3 hours to install xrms - an open source CRM. I uploaded all the files but before installing you must edit this particular file to the correct path. I keep getting this error: Parse error: parse error, unexpected '/' in /etc...

The particular folder they ask for is in /xrms/include


I must be missing something... Here is the code:
// This path should be the full filesystem path to the include directory for XRMS
// include trailing slash in path
$include_directory = xrms/include/;

// Report all errors except E_NOTICE
// This is the default value set in php.ini


I have tried /xrms/include/; /xrms/include; etc... Still no luck. Any tips really appreciated!
Well, you definitely need quotes.

The default:

Code:
// This path should be the full filesystem path to the include directory for XRMS
// include trailing slash in path
$include_directory = "/var/www/html/xrms/include/";
would be true for most stand-alone linux installations where the apache webroot was "/var/www/html/"

For a hosted server account, you will either need to log into your shell account and type
Code:
pwd
or you will need to call your hosting provider. This is a filesystem path, so it's not relative to the webroot.

Regards,

- Brian
 
Old 01-15-2008, 01:01 PM   #6
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks for the reply. I called them up and got the full path, but still doesn't work. I get the same error message:

"The include directory variable has not been set correctly.

It is currently set to '/hsphere/local/home/ivancastro/tuilingua.com/xrms/include/', which does not exist.

Please open the include-locations.inc file which is located at the top level of the xrms installation. Change the value of the $include_directory variable to the correct path.

Then run this installation again.
"

I'm sure the directory exists, I can see it in the web shell and in my filezilla

Last edited by v@ny@; 01-15-2008 at 01:03 PM.
 
Old 01-16-2008, 09:38 AM   #7
v@ny@
Member
 
Registered: Dec 2005
Location: Moscow
Distribution: Ubuntu 8.1
Posts: 104

Original Poster
Rep: Reputation: 15
I'm starting to think that this is happening because of a compatibility issue between the php site I'm trying to install and the php version installed in the server. Could that be the problem?
 
Old 06-07-2008, 03:34 AM   #8
P. Crespi
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Hi, you might have solved the problem yourself by now. I installed xrms on a OpenBSD 4.3 and ran into the same problem. So this might help others who want to install xrms on Linux/Unix Apache Mysql Php Environment. As a newbie I didn't know what chrooted means. This is important since Apache is chrooted. In other words the Apache root folder is different from the root folder of the Linux/Unix machine. If /var/www/ is the root folder of my Apache server, this path is invisible to XRMS. XRMS only "sees" what is inside. Apparently when XRMS is asking for the full filesystem path this starts in the root folder of you Apache server:

// This path should be the full filesystem path [OF YOUR APACHE SERVER] to the include directory for XRMS
// include trailing slash in path
$include_directory = "/html/xrms/include/";

Last edited by P. Crespi; 06-07-2008 at 03:35 AM. Reason: typing mistake
 
Old 04-03-2010, 04:07 PM   #9
mugarurac
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
xrms setup

hi,

i am using Lunar pages, as the hosting company, and they solved this problem for me.

_______________________________________________________________
Seems like during install you have supplied the wrong info regarding your install and the following changes must be made :

the vars.php file : /home/iplus3/public_html/projects/lead/xrms/include/vars.php

//where is the application in the filesystem (no trailing slash)
$xrms_file_root = "domainname/projects/lead/xrms";

with :

//where is the application in the filesystem (no trailing slash)
$xrms_file_root = "/home/iplus3/public_html/projects/lead/xrms";

and the includes path : /home/iplus3/public_html/projects/lead/xrms/include-locations.inc

$include_directory = "/html/xrms/include/";

with :

$include_directory = "/home/iplus3/public_html/projects/lead/xrms/include/";
_______________________________________________________________

however, after moving to the next step, i get a mysql error

Catchable fatal error: Object of class ADODB_mysql could not be converted to string in /home/iplus3/public_html/projects/lead/xrms/include/utils-misc.php on line 1752

so am waiting for their feed back on this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the meaning of "PHP Parse error: parse error, unexpected $ in..." frandalla Programming 23 03-04-2009 12:34 PM
Parse error: parse error, unexpected $ in /home/content/d/o/m/domain/html/addpuppy2.p Scooby-Doo Programming 3 10-25-2007 09:41 AM
need help with "Parse error: parse error, unexpected T_STRING" coffee245 Programming 2 01-29-2007 11:53 AM
php send email parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expect jamesjoy Programming 7 12-06-2005 04:33 PM
PHP parse error unexpected '>' ldp Programming 2 03-04-2005 02:20 PM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration