Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

configure Project'O...
 
Notifications
Clear all

configure Project'Or RIA in c panel

20 Posts
2 Users
0 Reactions
17.1 K Views
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 
[#1019]

Dear All

Im trying to configure Project'Or RIA in to our company sub domain using cPanel. im facing problem in setting parameter page location in parametersLocation.php.

my subdomain is - aaarentals.com - i have a directory with same name.
i copied the PRIA in to folder called - mispm (aaarentals.com/mispm)

i provide all required input in parameter.php in first login and clicked ok. it is not getting saved and proceed to login page.so i created parametersLocation.php in side 'tool' directory and specified the path as -
<?php $parametersLocation = 'parameters.php'; . because both are in same folder. i tried giving full path as -
<?php $parametersLocation = 'aaarentals.com/mispm/tool/parameters.php';

still i get same error saying , parameters.php could not be found. please delete the location file to use it parameters.php in tool folder.

please help me


 
Posted : 14 Mar 2013 14H31
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Hi,

Best way to try :
- delete parametersLocation.php in aaarentals.com/mispm/tool
- check that aaarentals.com/mispm/files (and its sub-directories) is RWX to everyone (at least to linux use rwho runs PHP). the best for a try is a chmod -R 777 on this directory
- run application and leave defaut value for log and parameter files (locations on ../files/logs/*)


 
Posted : 14 Mar 2013 19H14
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

hi Babynus

thanks for your prompt support.Im not linux guy, still i will try your stpes and get back to you. keeping the database server to local also fine you think?. i thought i should give the webserver name in there


 
Posted : 14 Mar 2013 20H21
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

keeping the database server to local also fine you think?

If your database server is the same as your PHP server, then configuring db server as localhost (or 127.0.0.1, which is better for MySql as it will provide no name resolution) will be good. Else, you must provide database server name or IP.


 
Posted : 14 Mar 2013 22H13
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

hi Babynus

Thanks for your assistance. i did every thing you asked me to do, unfortunately it doesn't work for me. hmm struggling to get it work for me.

thanks


 
Posted : 17 Mar 2013 14H39
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Did you try to set it up localy to try it ?
You may try a simple EasyPhp as WAMP.
This way you'll see a complete set-up and understand the steps to get a clean install.

Then restart from scratch on your cpanel setup :
- delete database (if exists)
- delete folder
- deploy new version (V3.2.1 has just been deployed)
- check that access right is correct to all folders and sub-folders, particuliarly /file folder and sub-folders and /tool folder (one file will be created here on set-up)

Run : you'll have configuration screen
Leave all parameters to default except database configuration to adapt your own.

You should have message :
- database create
- parameters file saved
Don't try to go further until you get these messages

Then you'll be able to connect : this will fill database with tables, and set all ready to run.


 
Posted : 17 Mar 2013 15H01
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

hi
I did every thing as you said. Now i have deploy teh latest version of 3.2.1. no luck.

below are the log errors i get. i have attached you erro log and folder permissions i have set up.

i could not set permission 777 for view folder, because if i set it 777 i get following

[Tue Mar 19 06:39:56 2013] [error] [client 94.56.246.198] SoftException in Application.cpp:601:
Directory "/home2/carrenta/public_html/MEAUTORENT.COM/arispm/view" is writeable by group, referer: http://www.meautorent.com/arispm/

in log file, and in browser

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@meautorent.carrentalslease.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

.


 
Posted : 19 Mar 2013 14H38
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Very weird.
Your php server seems not to be able to open /view/main.php file.

Can you try access /view/img/logo.gif.
It should display Project'Or RIA logo.

You also have a .htaccess file in /view
Can you check its content ?
Maybe it contains some directives to block access to this folder.


 
Posted : 19 Mar 2013 16H13
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

Hi I could access the image over browser -

but i could not find the file you mentioned as .htaccess . can you please specify the exact name of it please.


 
Posted : 19 Mar 2013 16H26
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Your log file refers to
/home2/carrenta/public_html/MEAUTORENT.COM/arispm/.htaccess

Maybe you cannot see it unless you set an option to see hidden files (by default files whose name starts with a point are hidden)


 
Posted : 19 Mar 2013 17H05
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

Hi

Im keep on disturbing you.sorry to do so.

I could not find .htaccess in the arispm whole directory. i could check for "show hidden files" option in Cpanel file manager and tried. ther is no such file available in the directory.

There is no error_log file also available for this application. why it is?. i have error_log file for my other php application i use.


 
Posted : 20 Mar 2013 8H16
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

I could not find .htaccess in the arispm whole directory. i could check for "show hidden files" option in Cpanel file manager and tried. ther is no such file available in the directory.

Strange, as your log file refers to it :

[Tue Mar 19 06:22:58 2013] [crit] [client 94.56.246.198] (13)Permission denied: /home2/carrenta/public_html/MEAUTORENT.COM/arispm/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

There is no error_log file also available for this application. why it is?. i have error_log file for my other php application i use.

There is ! but its location is defined on setup, and possibly you did not reach that point.
By defaut it in in /files/logs


 
Posted : 20 Mar 2013 15H01
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

Do you think , talking to our web hosting company would help me on this?.


 
Posted : 20 Mar 2013 15H45
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

yes, it may help.
you may ask them for explanations about logged errors.

why are references to 403.shtml, 404.shtml and 500.shtml ? they are not part of application and not referenced in main.php.
what about .htaccess in logs ?


 
Posted : 20 Mar 2013 16H28
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

hi

below is the explanation they gave our VTiger CRM issue. it also on same domain as projectOr. i could not create a new profile in the application and it crashes. im not sure it would give you some idea to think of some think.

"The error you are seeing is because mod_security is blocking the access due to the insecure way of access your script is making and it can be exploited for file injection and remote file include and in a wrong hands this vulnerability can be exploited and can be used for hacking your own account and it inturn will affect the server so the solution here is to contact any developers and fix that vulnerability by changing the way your script access the URLs and pass the values and that will make your site more secure and will help it from getting hacked or getting uploaded with malicious contents and this feature which is blocking your access now is for your own security so instead of us disabling it what you need to do is to fix it and thats the permanent solution for it and that will be helpful for you in the long run and adds security to your site. Hope you have understood the situation and expecting your co-operation in this. "


 
Posted : 20 Mar 2013 16H48
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Thanks for this information.

It seems to be the source of your problems.
I don't know much about the mod_security of apache, but it may lead to the issues you meet.
mod_security returns a "no page found" when some strings are found in the POST request.
The little I've read about it shows that it is a good tool when code is not safe againt code injection of SQL injection. Fortunatly, Project'Or RIA code is safe against these attacks.

What you can do is try and disable it for the context :
create in the root directory of the application a .htaccess file containing

SecFilterScanPOST Off

You can find more information about work arounds here :
http://wiki.modxcms.com/index.php/What_is_mod_security_and_how_does_it_affect_me

I'll have a closer look to see if I can improve application code to make it mod_security safe, but I'm not sure it is really relevant and even possible.

Could you ask your provider how the mod_security is configured and which strings are filtered ?


 
Posted : 21 Mar 2013 0H53
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

Hi

Thanks a lot for your time and effort. i got it work.hosting guys asked me to create the database via Cpanel(MySql databses) with a user. then i specify the detail in projectOr parameter page(db name,user and password). it works fine.

do you have any idea how do i can edit the email content send on new accunt creation for users. i want to include the application URL and login detail.because soem of our users are in differnt countries, so it is easy to support them.
thanks alot


 
Posted : 21 Mar 2013 9H44
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

do you have any idea how do i can edit the email content send on new accunt creation for users. i want to include the application URL and login detail.because soem of our users are in differnt countries, so it is easy to support them.

Unfortunately, this message his not parametable. You need to change code /tool/sendMail.pgp, line 24

$title=i18n('userMailTitle');  
    $msg=i18n('userMailMessage',array($login,$pwdMsg,Parameter::getGlobalParameter('paramAdminMail')));

or change language file...


 
Posted : 21 Mar 2013 11H20
Nowzarth
(@nowzy)
Posts: 14
Active Member
Topic starter
 

hi

im not a php guy.please give me little infor what veariable, and stuff i should edit to include my message i want.


 
Posted : 21 Mar 2013 11H31
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Just

$title="Your title for the mail";  
$msg="Your message body";

 
Posted : 21 Mar 2013 12H03
Share:

Scroll to Top