virtualmin pro: a few configuration problems Part2

8 posts / 0 new
Last post
#1 Mon, 09/10/2007 - 16:59
Renato

virtualmin pro: a few configuration problems Part2

Hi Joe,

I think everything in general is getting better, but there are a few problems that I would like your help:

1) The php settings allowing my customers to customize their website via joomla/php is working fine, except that whenever they upload a new file, it is chmoded to 600... is it possible to correct it to 644 for files and 755 for folders?

2) When I am working in a website I get a lot of 500 Internal Errors... But if I wait 2 or 3 seconds and then refresh my browser, everything is back to normal again. How can I avoid this kind of situation? Is there anything that I could set to solve this issue once for all ?

3) Some weird thing is happening with my customers email accounts... If I try to send an email via thunderbird/outlook (my email account is in another server running cpanel), it isn't delivery to the email account in my webmin/virtualmin server, and the funniest thing is: a) there is no record in my log files about this email and b) If I send an email via my yahoo account or via this specific customer website (using a php form), it works!!! On the other hand, if that specific account send me an email via webmail or an email client (ie: thunderbird, outlook) it works perfectly.

4) Very soon I will need to recompile my php to allow MSSQL database connection (via freetds) to an external server, is there any tip/trick to do that via webmin/virtualmin?

5) And finally, whenever I create a new virtualhost I have to manually fix the new *.host file in /etc/apache2/sites-available (changing the <virtualhost *:80> to <VirtualHost MyServerIP:80>). Is there something that I can set to make it automaticaly?

Thank you,<br><br>Post edited by: Renato, at: 2007/09/10 17:32

Tue, 09/11/2007 - 07:34
ConRadical

<b>Renato wrote:</b>
<div class='quote'>
1) The php settings allowing my customers to customize their website via joomla/php is working fine, except that whenever they upload a new file, it is chmoded to 600... is it possible to correct it to 644 for files and 755 for folders?
</div>

I have the same problem, I believe this is something that's supposed to be setup when it's install... i'm going to be looking into this issue soon myself but maybe Joe or Jamie will get to it before i do and save me time ;)

Tue, 09/11/2007 - 10:35 (Reply to #2)
Joe
Joe's picture

This is probably a configuration problem in the program you're using to do the uploading. The default file mask ought to be 750, or similar.

So, what are you guys using to upload the files?

--

Check out the forum guidelines!

Tue, 09/11/2007 - 10:54 (Reply to #3)
ConRadical

uploading from the media manager built into the joomla administrator ;)

Tue, 09/11/2007 - 14:55
Renato

Hi Joe,

I will try to figure it out what is going on with the upload section of joomla.
Could you please help me with the other topics?

Thank you,

Tue, 09/11/2007 - 15:51 (Reply to #5)
Joe
Joe's picture

<div class='quote'>2) When I am working in a website I get a lot of 500 Internal Errors... But if I wait 2 or 3 seconds and then refresh my browser, everything is back to normal again. How can I avoid this kind of situation? Is there anything that I could set to solve this issue once for all ?</div>

I don't know--I've never seen this particular issue. It could be a broken mod_fcgid. Ubuntu has a history of shipping broken mod_fcgid packages...so it could be that. What appears in the error_log when one of these errors occurs? (Make sure you're getting the entry that is triggered when the 500 occurs...not just random stuff from the log...the best way to do that is probably to &quot;tail -f&quot; the log, hit enter a few times so you can see where the break is...and then reload your page until the 500 error occurs...if something shows up in the log at that moment, that's what we want to see).

&quot;3) Some weird thing is happening with my customers email accounts... If I try to send an email via thunderbird/outlook (my email account is in another server running cpanel), it isn't delivery to the email account in my webmin/virtualmin server, and the funniest thing is: a) there is no record in my log files about this email and b) If I send an email via my yahoo account or via this specific customer website (using a php form), it works!!! On the other hand, if that specific account send me an email via webmail or an email client (ie: thunderbird, outlook) it works perfectly.&quot;

You you don't see an entry in the maillog when this happens, then you're not actually sending mail through your server. I can't really tell you why that's so, there are several possibilities.

If your ISP is evil, they might be hijacking SMTP connections (seems unlikely) and then doing something dumb with the resulting messages.

More likely is that the domain name your mail client is connecting to is resolving to the wrong place. You might try changing it to the IP address of the server, so you can be absolutely certain it's going to the right system.

As I said, if it's not in the log, then the server isn't in the path of the email, and there's nothing to be done at the mail server level. You've got to find out why mail is never coming to your server, not why the server isn't delivering it.

<div class='quote'>4) Very soon I will need to recompile my php to allow MSSQL database connection (via freetds) to an external server, is there any tip/trick to do that via webmin/virtualmin?</div>

I've got no clue. Can't that connector build as a module, perhaps? That way you'd just install the -dev or -devel package, and build the module without having to replace the whole thing. If you do have to replace it, install the php source package via apt or from SRPM and see about rebuilding it with the bits you need (or at the very least make note of the configure options from the default package).

<div class='quote'>5) And finally, whenever I create a new virtualhost I have to manually fix the new *.host file in /etc/apache2/sites-available (changing the &lt;virtualhost *:80&gt; to &lt;VirtualHost MyServerIP:80&gt;). Is there something that I can set to make it automaticaly?</div>

Yes, kill the NameVirtualHost *:80 bit in the Apache configuration, first off. You don't want it in a virtual hosting environment (it's setup by default in the Ubuntu configuration, unfortunately). You can find the offending line with a grep /etc/apache2 (I don't remember which of the half-dozen configuration files on Ubuntu contains it):

grep -r NameVirtualHost *

And, for Virtualmin the configuration is documented here:

http://www.virtualmin.com/documentation/id,troubleshooting_common_proble...

--

Check out the forum guidelines!

Tue, 09/11/2007 - 16:12
Renato

Hi Joe,

About the topic #2, I checked /var/log/apache2/error.log and I got these messages:

root@renatoferrari:/var/log/apache2# tail error.log
[Tue Sep 11 20:51:00 2007] [notice] mod_fcgid: process 5260 going graceful shutdown, sending SIGTERM
[Tue Sep 11 20:51:06 2007] [notice] mod_fcgid: process /home/rachael/public_html/index.php(5260) exit(communication error), terminated by calling exit(), return code: 0
[Tue Sep 11 20:55:26 2007] [notice] mod_fcgid: call /home/rachael/public_html/index.php with wrapper /home/rachael/fcgi-bin/php5.fcgi
[Tue Sep 11 20:55:26 2007] [notice] mod_fcgid: server /home/rachael/public_html/index.php(7550) started
[Tue Sep 11 21:05:57 2007] [notice] mod_fcgid: call /home/renato/public_html/tools/mysql/main.php with wrapper /home/renato/fcgi-bin/php5.fcgi
[Tue Sep 11 21:05:57 2007] [notice] mod_fcgid: server /home/renato/public_html/tools/mysql/main.php(8283) started
[Tue Sep 11 21:06:06 2007] [notice] mod_fcgid: process 5607 going graceful shutdown, sending SIGTERM
[Tue Sep 11 21:06:13 2007] [notice] mod_fcgid: process /home/vixi/public_html/index.php(5607) exit(communication error), terminated by calling exit(), return code: 0
[Tue Sep 11 21:06:22 2007] [notice] mod_fcgid: process 8283 going graceful shutdown, sending SIGTERM
[Tue Sep 11 21:06:28 2007] [notice] mod_fcgid: process /home/renato/public_html/tools/postgre/index.php(8283) exit(communication error), terminated by calling exit(), return code: 0

Is it mean something for you?

Mon, 09/24/2007 - 17:19 (Reply to #7)
Joe
Joe's picture

Coming back to this old thread, I'm rolling out a new version of mod_fcgid as we speak. I'm hoping it will resolve the problems you're seeing with the terminating processes.

--

Check out the forum guidelines!

Topic locked