Change PHP max_execution_time and max_input_time using .htaccess

Re: Changing max_execution_time and max_input_time in .htaccess for a single domain

Sometimes you need more time for your script or upload to complete however you want to avoid changing these setting for the entire server, so the option to change for a single domain is there when running PHP as Apache.

To change max_execution_time and max_input_time from the 60 second default add the following lines to the top of your .htaccess:

php_value max_execution_time 600
php_value max_input_time 600

The change is instantly active and affects only the virtual host in question.

Cannot add email attachment

Re: Problems sending attachments, attachments wont attach

Usually this problem is browser related and can be traced to an over-protective security setting, try the following in Internet Explorer:

  • Click “Tools”,”Internet options”,”Security” tab,”Custom level”
  • Scroll down util you find “Navigate sub-frames across different domains”
  • Click “Enable”, “Apply”, “Ok”

Now try to attach again.

Plesk: /etc/init.d/qmail: line 25: [: =: unary operator expected

Re: qmail restart error, plesk qmail error,  [: =: unary operator expected

You have installed Plesk, updated all your modules, upgrade PHP, mysql, everything looks great. Then, you realise that you have Plesk with the Postfix MTA but you want Qmail MTA – so you go ahead and select Qmail MTA in the Plesk Upgrade Manager.

Install is fine, until you try to start qmail.

[root@server ~]# service qmail restart
/etc/init.d/qmail: line 25: [: =: unary operator expected

Before you panic, check this file:

# cat /etc/sysconfig/network
HOSTNAME=server.yourhostname.com
NETWORKING=yes

If you are missing the NETWORKING line, simply insert it.

# [root@server ~]# service qmail start
Starting qmail:                                            [  OK  ]

Your qmail service is now functioning as required. Panic over 🙂

Domain Mailboxes – Frequently Asked Questions (FAQ)

We offer mailboxes with our parked domain services. The mailboxes supplied with parked domain names operate slightly differently to hosting mailboxes, this FAQ should help in answering some of the common questions regarding parked domains.

How should my name servers be set?

For parked domain mailboxes you domain name servers need to be set to point to the parking server (MICROLITE1). The name servers should be set to:

  • ns.microlite1.com
  • ns2.microlite1.com

If your name servers are not set to the parking name servers then your domain name will not be connected to your domain mailbox service and no email will be received to your mailbox. Any name server changes are subject to the usual global DNS propagation delay of up to 72 hours.

How do I access my domain mailbox?

You can access your domain mailbox be using the login details in your welcome email. We currently offer Squirrelmail as the webmail client for domain mailboxes which you can access using the following URL:

http://www.microlite1.com/webmail

You can also add your domain mailbox POP user details to your email client (such as Outlook) by using the incoming mail server name “mail.microlite1.com”. The outgoing mail server name must be that as provided by your ISP.

How do I send emails from my domain mailbox?

You can send email from your domain mailbox by logging in to your webmail client (currently based on Squirrelmail) at the URL below:

http://www.microlite1.com/webmail

It is not possible to send email using your local email client at this time unless your ISP allows you to send outgoing mail direct from your PC.

Can I send email through my PC mail client eg Outlook?

It is not possible to send email using your email client at this time. Emails can only be sent by using the webmail client accessable here: http://www.microlite1.com/webmail

Can I receive email through my PC email client eg Outlook?

Yes, simply use your mailbox name (eg mbname-domain-co-uk) as  your POP username and mail.microlite1.com as your incoming POP mail server name. This will enable you to download your emails to your local email client.