Correct execute permissions + paths/URLs in the *.cgi's?
Hi there,
I tried again to install a Movable Type installation (third time or so), this type I did not get even as far as last time. I think the manual etc. is just unprecise and doesn't help me!
Why not a video tutorial? Ok, but however first my configuration:
My URL is "philipp-grunwald.de", hosted on a Linux server (not mine, but of a provider).
My server is built up like the following: /is/htdocs/wp1000009_XXXXX12345/www/, meanwhile I'm kicking into at /*/www/ via ftp. Under /*/www/* all my data is stored.
I did also create a subdomain , "blog.philipp-grunwald.de" pointing to */www/blog/.
I did remove this subdomain (forward) only after step 4 failed and I wanted to know, if I could turn it around somehow, but obviously, this didn't help but only made it work even less.
1. I'm not sure if I should just follow the installation wizzard which is also explained here oder should I follow the detailed manual, which wants me to separate the mt-static, the cgi-bin and the /mt/? Question: If I have to follow the second one (or is it just not updated?), which is the right path?
*/www/blog/(everything)
OR
*/www/blog/cgi-bin/ AND
*/www/blog/cgi-bin/mt AND
*/mt-static
OR (as also read)
*/?/cgi-bin/mt/*.cgi
OR
anything in between?
For me, <ins>at first</ins> the first alternative worked.
Concerning the CGI-folder I have to add, that there is no visible cgi-bin folder anywhere in my account, although there was one in */www/cgi-bin/ until I deleted it (because it was empty) with the other old, failed MT installation.
2. What is "execute permissions" from your point of view exactly?
Why don't just directly talk about 755 and 777 ?!?! Why has one to guess.
I say that, because it just doesn't work. I got several errors:
2.1. I couldn't save the mt-config.cgi automatically, I had to create & upload it manually. Error message:
"Die Movable Type Personal-Konfigurationsdatei konnte nicht gespeichert werden.
Bitte überprüfen Sie, ob der Webserver Schreibrechte für Ihr Movable Type Personal-Hauptverzeichnis hat und klicken Sie dann auf "Erneut versuchen"."
2.2. I couldn't persuade MT to use the publishing path (s. 4.).
All files were 755 (including my /blog/ directory) and all *.cgi's were 777.
3. Sendmail doesn't work! It's not the standard path but: /usr/sbin/sendmail.
But the path change didn't help, no Testmail delivered...
4. What to do about the specific blog you shall create at the end? I used:
Blog URL: http://blog.philipp-grunwald.de/ (wanted to use this subdomain, should've done it later?)
Publishing path: /is/htdocs/wp1000009_XXXXX12345/www/blog/content/
Before adding /content/ I got an permission/write error, but as I didn't want to change /blog/ to 777, I created /blog/content/, as I thought the blog's content (!) must have it's own data folder anyway! Wrong thoughts?
Was only the /content/* wrong here or everything? Or is my blog URL a bad choice?
And where are all those options saved? Didn't find anything about it anywhere!
* I actually created this folder of course.
In the end, I couldn't open MT via www.philipp-grunwald.de/mt.cgi, but via blog.philipp-grunwald.de/blog/mt.cgi (if I'm not wrong). But after entering the login credentials, I get a 404 Error, page not found. I think it is because of both my different subdomain and my wrong /content/ path part.
5. How do I reinstall / repair MT? Do I have to wipe it out completely every time?!
I mean, I don't use a blog yet, but what if I use one and there's huge data?
Isn't there any repair option - if you're not a geek - in this case?
Finally:
What did I do wrong?
I tried again to install a Movable Type installation (third time or so), this type I did not get even as far as last time. I think the manual etc. is just unprecise and doesn't help me!
Why not a video tutorial? Ok, but however first my configuration:
My URL is "philipp-grunwald.de", hosted on a Linux server (not mine, but of a provider).
My server is built up like the following: /is/htdocs/wp1000009_XXXXX12345/www/, meanwhile I'm kicking into at /*/www/ via ftp. Under /*/www/* all my data is stored.
I did also create a subdomain , "blog.philipp-grunwald.de" pointing to */www/blog/.
I did remove this subdomain (forward) only after step 4 failed and I wanted to know, if I could turn it around somehow, but obviously, this didn't help but only made it work even less.
1. I'm not sure if I should just follow the installation wizzard which is also explained here oder should I follow the detailed manual, which wants me to separate the mt-static, the cgi-bin and the /mt/? Question: If I have to follow the second one (or is it just not updated?), which is the right path?
*/www/blog/(everything)
OR
*/www/blog/cgi-bin/ AND
*/www/blog/cgi-bin/mt AND
*/mt-static
OR (as also read)
*/?/cgi-bin/mt/*.cgi
OR
anything in between?
For me, <ins>at first</ins> the first alternative worked.
Concerning the CGI-folder I have to add, that there is no visible cgi-bin folder anywhere in my account, although there was one in */www/cgi-bin/ until I deleted it (because it was empty) with the other old, failed MT installation.
2. What is "execute permissions" from your point of view exactly?
Why don't just directly talk about 755 and 777 ?!?! Why has one to guess.
I say that, because it just doesn't work. I got several errors:
2.1. I couldn't save the mt-config.cgi automatically, I had to create & upload it manually. Error message:
"Die Movable Type Personal-Konfigurationsdatei konnte nicht gespeichert werden.
Bitte überprüfen Sie, ob der Webserver Schreibrechte für Ihr Movable Type Personal-Hauptverzeichnis hat und klicken Sie dann auf "Erneut versuchen"."
2.2. I couldn't persuade MT to use the publishing path (s. 4.).
All files were 755 (including my /blog/ directory) and all *.cgi's were 777.
3. Sendmail doesn't work! It's not the standard path but: /usr/sbin/sendmail.
But the path change didn't help, no Testmail delivered...
4. What to do about the specific blog you shall create at the end? I used:
Blog URL: http://blog.philipp-grunwald.de/ (wanted to use this subdomain, should've done it later?)
Publishing path: /is/htdocs/wp1000009_XXXXX12345/www/blog/content/
Before adding /content/ I got an permission/write error, but as I didn't want to change /blog/ to 777, I created /blog/content/, as I thought the blog's content (!) must have it's own data folder anyway! Wrong thoughts?
Was only the /content/* wrong here or everything? Or is my blog URL a bad choice?
And where are all those options saved? Didn't find anything about it anywhere!
* I actually created this folder of course.
In the end, I couldn't open MT via www.philipp-grunwald.de/mt.cgi, but via blog.philipp-grunwald.de/blog/mt.cgi (if I'm not wrong). But after entering the login credentials, I get a 404 Error, page not found. I think it is because of both my different subdomain and my wrong /content/ path part.
5. How do I reinstall / repair MT? Do I have to wipe it out completely every time?!
I mean, I don't use a blog yet, but what if I use one and there's huge data?
Isn't there any repair option - if you're not a geek - in this case?
Finally:
What did I do wrong?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?When I try to access http://www.philipp-grunwald.de/blog/m... I receive an error that the user account specified in mt-config.cgi does not have access rights to the database.
-
You shouldn't be able to anyway, should you? ;) And I don't know when you did it, since this post I retried the installation one time and changed some things. -
Inappropriate?Here is what I would do.
1) Check that your database details are correct.
2) Clear the current installation attempt from your space.
Now we are going to start with the basics.
1) From your archive copy the mt-static directory to your www directory
2) Create a directory called mt in your www directory
3) Copy everything apart from mt-static to the mt directory
4) set cgi file permissions to 755
5) Now check,
if you go to http://www.philipp-grunwald.de/mt-static you should see a message ' mt static - ok'
if you go to http://www.philipp-grunwald.de/mt/mt.cgi you should see an error about config file missing.
6) copy mt-config.cgi.orginal to mt-config.cgi and edit it to match your settings.
7) Breathe and then try going to http://www.philipp-grunwald.de/mt/ and see what happens. -
Inappropriate?Hey "OtherNiceMan",
I did 1) & 2) anyway. Concerning the next steps, so you don't think the way described here is the right one, but the one here (4.-8.)? And what about "If you have privileges to edit your Web server configuration files, you can install all of the Movable Type files in an "mt" directory within your Web server's Web root directory. With Apache configured this way, there is no need to setup or move your "mt-static" directory. Future upgrades are also much easier to manage as you're only placing files in one location." (source), or has this nothing to do with our decision between those two ways?
2. I don't have any /cgi-bin/ folder, where shall I put it?
3. What means "writable by your web server" (source) in numbers? 755 or 777?
...
5. Please help me with my questions posted over in the MT forums: Which files are inserted in which folders via the installation process? I'd like to delete them to quickly retry the installation process without having to delete / re-upload and re-chmod all the files!
...
6. Why do I have to edit it manually?! For what is the MT installation wizard if it doesn't work all the time?
7. What if I don't what it to have at */mt/ or */blog/, how do I route this to http://blog.philipp-grunwald.de/ and do I have to configurate this somewhere?
Thanks a bunch!
I’m still confused & try to get the point.
-
Inappropriate?1. Both are valid, however I was describing the way that I always work, which is what I could then help with.
2. cgi-bin folder may not be required, some hosts only let scripts run from a folder called cgi-bin. My host does not.
3. That would mean that directory needs to be 777
5. Not files get moved during the installation process, so the files will be where ever you copied them to, you could just move the files to match the layout I previously described.
In my host I have
www/mt-static <-- /><-- /><-- blog files
6. Until recently I did not even know that the wizard existed, personally I have never used it so I never recommend it.
7. You would need to make sure that the CGIPath and StaticWebPath point to the correct locations and modify your configuration so that the sub domain points to the correct place (vary from host to host).
1 person says
this answers the question
-
Inappropriate?Hi "OtherNiceMan",
thanks for explaining 1. & 6. and clarifying 2. & 3. ! :)
What I prefer about the wizard, is that all is in one place and because of the reason, that is mentioned in the Linux Installation guide.
I could already practically prove that 2. isn't required by my hosting provider luckily, now I understand the point that was made about it, great! =)
Concerning 5. my question was about which files to delete, any suggestions? This is a question not for now (re-uploaded the whole stuff now the third time anyway), but for the future, when there might appear some problems.
Concerning 7., can you provide me with more information about this? Maybe a link or a simple description? As you don't know the wizard, I'm also not still sure, if this affects the "blog URL" (see 4. of my question) you have to specify...
Thanks again!
I’m almost perfectly happy. :)
-
Inappropriate?Ok, now I got it so far, that everything seems fine.
The only problem: When I open http://philipp-grunwald.de/blog(/mt.cgi), nothing happens. There is just a plain, blank, white page after login.
And I found, the mt-config.cgi seems to have been created only recently. But it is on "644" instead of "755" / "777"! When I try to change it, this shows up in my FTP client:
"Status: Berechtigungen für '/www/blog/mt-config.cgi' werden auf '755' gesetzt
Befehl: SITE CHMOD 755 mt-config.cgi
Antwort: 550 mt-config.cgi: Operation not permitted"
The only reason I see is, that I used "http://philipp-grunwald.de/blog/" as the blog URL instead of "http://www.philipp-grunwald.de/blog/". But as I have a standard (non-changeable) forward from my hosting provider and also can it open both with www and without, I don't think that's the problem.
I’m bugged.
-
Seems to be a HTTP500 Internal Server Error. -
Inappropriate?Philipp - I am sorry you are having difficulty. Making MT easier to install is one our biggest priorities. Cold comfort for you unfortunately. Let me see if I can help:
1) I personally prefer to serve everything out of a single directory, like an "mt" directory, or from a modified "cgi-bin" directory that has a modified policy from the default apache one. For you though, given that you don't have a cgi-bin directory from what I can gather, I would place all of the MT application files into www/mt/ and all your static files into www/mt/mt-static.
Now we need to tell Apache how to treat this directory. I would do that with an .htaccess file. I think this article is helpful:
http://apache.active-venture.com/cgi-...
2) A common cause of permissions problems is SELinux which is an optional mode to run Linux under. This established a very rigid set of rules for the system designed to make it more secure. It is VERY strict in regards to CGI specifically. Ask your hosting provider if SELinux is enabled on your system.
3) Check out the config directive: SendmailPath which can be placed in your mt-config.cgi file and can point to your sendmail program.
4-5) Movable Type the app can be served out of one directory and publish to any other directory, assuming those directories grant the web server write access to them. Check to see if their is a 'www' or 'apache' group on your system and assign that group to the directories you want to write to. Then give that group write permission (chmod g+w) on those directories.
Contact your hosting provider for help. This should all be very standard stuff for them.
I’m hopeful
-
Inappropriate?Hello Byrne,
thanks for you help & support! But as you can see from my latest comment, currently the problem is a slightly different one, but concerning what you wrote:
1). Yes I do also use a single directory, as described. I use "blog" instead of "mt"
1.1.) Do I really need a .htaccess file? I know it's great and I can do a lot of stuff with it, but I did want to keep it simple at first. But it seems I can't. ;)
2). I'll ask that, thanks. Can I maybe check this by myself via any script or my hosting interface? 4)./5.) I'm not into the manual (command line?) actions (as in 4./5.), where do I have to use those?
3). Thanks, sendmail was & is configured correctly. It now also works again. Don't know why it didn't as I posted my question.
4)./5). I think I know where to change this. But I don't want to "publish" to another directory, but to another URL / path! Or do I have to make an additional, different folder or a sub-folder /blog/content/ to realize this? I still don't get it, find your answers a little imprecise regarding this.
In my case, there is no "apache" group accessible on my server.
Of course I can give them permissions, but what is "g+w" in numbers, 664?
I’m not yet satisfied, too many questions left...
-
Inappropriate?The 550 error you see when try to change the permissions on the folder means that your FTP account does not have permission to do this, which is strange as you managed to do this for the other .cgi files. Did you use the wizard to create the config file? It may have ended up as being owned by a different account.
-
Inappropriate?I deleted the whole mess from the server, uploaded the new MT 4.2 version via FTP and got this error (after changing all *.cgi's and "mt-static" (plus content) to 755):
Got an error: Base class package "MT::ErrorHandler" is empty.
(Perhaps you need to 'use' the module which defines that package first.)
at lib/MT.pm line 10
BEGIN failed--compilation aborted at lib/MT.pm line 10.
Compilation failed in require at lib/MT/Bootstrap.pm line 61.
What did I do wrong? :(
I’m frustrated
-
Inappropriate?Can you confirm that the /path/to/cgi-bin/mt/lib/MT/ErrorHandler.pm file is there? Can you confirm that the FTP process completed successfully?
If not, many FTP clients will allow you to upload a zip file and then unzip it on the server. That might be a more successful way to upload MT because it has so many files.
1 person says
this answers the question
-
Sorry, did solve it. (So: Yes & yes) You might see the thread in the MovableType Forums for my current problem. -
Inappropriate?Any further ideas concerning this?
By the way, I found Google indexed my http://*url*/blog/mt.cgi ! How can I hinder that? I'm just wondering why this URL pops up at No. 4 of my search results!
I’m unsure
-
Inappropriate?Oh man! I again uploaded the whole MT directory, checked the rights and it still displays a white page when loading the "mt-wizard.cgi"! Why??
Why doesn't it just work "out of the box" when uploading it?
Isn't there any other way to install MT?
I’m angry.
Loading Profile...



