LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Parse error: parse error, unexpected '/' - can anyone see the error in this code? (https://www.linuxquestions.org/questions/programming-9/parse-error-parse-error-unexpected-can-anyone-see-the-error-in-this-code-613547/)

v@ny@ 01-14-2008 03:15 PM

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!

Guttorm 01-14-2008 05:33 PM

Try this:
$include_directory = "xrms/include/";

v@ny@ 01-15-2008 03:30 AM

I've tried all combinations with " but still doesn't work...

ghostdog74 01-15-2008 03:45 AM

did you actually have a /xrms/include/ directory. Maybe you need to create it first. Just a guess

braverock 01-15-2008 11:42 AM

Quote:

Originally Posted by v@ny@ (Post 3022327)
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

v@ny@ 01-15-2008 01:01 PM

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

v@ny@ 01-16-2008 09:38 AM

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?

P. Crespi 06-07-2008 03:34 AM

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/";

mugarurac 04-03-2010 04:07 PM

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


All times are GMT -5. The time now is 12:19 PM.