Need help with ModX CMS installation

Status
Not open for further replies.

mypsa

New Member
Messages
13
Reaction score
0
Points
0
So far I've been following the installation instructions in the README file to the letter but I get a 500 Internal Server Error while trying to access the installation file through my browser. I have no idea what this means or what is causing it.

I've attached the ModX CMS readme file if anyone would care to help guide me through this error.

Thanks in advance.
 

Attachments

  • README-en.txt
    15.1 KB · Views: 69

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Can you give a link to the installation page? Usually the 500 errors are caused by permissions. Setting the permission on the files to 755 usually fixes the issue.

-Corey
 

DizzyTechnology

New Member
Messages
500
Reaction score
0
Points
0
Yeah, all of the files in MODx's default installation are CHMODded weirdly, and gives 500 errors. You might as well fire up FTP and recursively set everything to 755.
 

mypsa

New Member
Messages
13
Reaction score
0
Points
0
Link to installation page:
http://mypsa.exofire.net/install/index.php

Hmm...meaning I have to set EVERY file to 755 or just certain ones?
Edit:
Edit: Seems like it working now after I CHMOD-ed every single file in the install directory to 755. WIll finish installation and see how it turns out.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Okay, please post back or close this thread when you finish.

-Corey
 

mypsa

New Member
Messages
13
Reaction score
0
Points
0
Yeesh...the installation went fine. But now I can't login at the admin page. I'm currently in the process of chmodding all files to 755 to see if that works. Is there a security risk if I leave files at that permission level?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I would set your config files to 644 after you are done setting everything up. Regular files like index.php should be fine being 755.
 

mypsa

New Member
Messages
13
Reaction score
0
Points
0
Okay, I am still getting an error and unable to login through the admin/manager panel. There's a pop up with weird html markup on it. CHMOD-ded all files in the Manager folder to 755 but still no luck.

Is there anyone with a successful installation of ModX here that could give me some guidelines?

I'll try it again tomorrow since it's 12am here and I have an early class tomorrow. :(
 

Attachments

  • login error.jpg
    login error.jpg
    121.8 KB · Views: 62

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Should be fixed now. When you're done setting everything up go back and chmod your config files to 644.

-Corey
 

mypsa

New Member
Messages
13
Reaction score
0
Points
0
Many thanks for helping me solve the problem Corey!

May I ask what was the problem? Just in case if I have to re-install ModX again.
 

mypsa

New Member
Messages
13
Reaction score
0
Points
0
Site doesn't work if I CHMOD the config files to 644. SO I just left it where it was. =/

Would be helpful if anyone who has ModX installed could tell me which exactly are the config files to mod.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I just chmodded your Settings.php file to 644, looks like the site still works.

-Corey
 

dpogary

New Member
Messages
134
Reaction score
0
Points
0
what you could do is set your Config files into a folder before the WWWRoot folder and then have a config file inside of the main root that will redirect everything to that folder with the config's....its Alot more secure since only people with access to your files before the wwwroot should only be you through Cpanel or FTP
 

mypsa

New Member
Messages
13
Reaction score
0
Points
0
Thanks Corey and dpogary. I'm absolutely clueless about the technical stuff. That's a useful bit of advice, dpogary. Can you give me an example on how to do that? If it's not too troublesome for you of course.
 

dpogary

New Member
Messages
134
Reaction score
0
Points
0
ok so what you do is put your config file into the main folder(bofore your Public_HTML) that has all the connection information that all of your pages use to connect to the DB...for example in most config.php

so then what you do in the folder were you have all of your webpages installed at(were the origional config file is located) you will make another config.php and have a code in there:
PHP:
<?php
include('../config.php');
?>

../ will be the ammount of times its going backwords in the folder's

lets say you have your website as something like root_html/something/website/"
then the ammount of dots will be

PHP:
<?php
include('../../../config.php');
?>


and if you have lots of files in that folder and want your config files in a folder then it should theoreticly look like this(havnt tried this for a long time so not 100% sure if correct)
PHP:
<?php
include('../../../config/config.php');
?>
 
Last edited:

mypsa

New Member
Messages
13
Reaction score
0
Points
0
Thanks dpogary! Although I can't seem to find the config file but now I understand how to do it. It's useful to apply this to other installed software config as well. I guess now my problem is solved.

Thread closed.
 
Status
Not open for further replies.
Top