weird php 4.4.0 problem

Possible php 4.4.0 update issue – Thanks to scott for this one!

Hi,

It looks like you upadted PHP to 4.4.0 on this server last night. Ever since this update has been installed (Today only) some of my site is broken.

[later on…]

FYI:

Here is the PHP bug:

I had to change:

$this->_elements[] =& $formElement; // this did work but now does not

to:

array_push($this->_elements,$formElement); // this now works

I think they broke this in the new version.

How can I change my primary domain?

You can change your primary domain via the ‘domain’ section of your control panel. Just click on the link that says ‘Click here to change your Primary Domain’.

Warning: When changing your primary domain name, you will lose all existing email accounts and subdomains. You will need to recreate all subdomains and email accounts on your new domain.

If you still want your current domain to work, you can “park” it via the domain section of your control panel. Just click on the link that says ‘Add a parked domain’.

Please remember your_username.phpwebhosting.com will always work. There is no need to park this domain.

Note: If you get the message “That is not a valid domain or the domain is already in use” when trying to change your primary domain, this most likely means the domain is already parked on your account. In order to make a domain your primary domain, you must first remove it as a parked domain. You can remove parked domains by clicking on the ‘List Parked Domains’ link then clicking ‘delete’ next to the domain you wish to remove.

I want to do some advanced things with my incoming mail – what are the restrictions? Explain your shell mail options more.

Question:

Are you familiar with hypermail? It is an archiving program. It takes email and puts it in a convenient html archive. What hypermail purportedly does is take mail from mbox and put it in the archive. It can’t be too complicated or difficult to configure and install. Do you know anything about it? Would it work on your servers?

Answer :

I am not very familiar with hypermail, but from what you describe the biggest problem would be that our mail server software (qmail – qmail.org) puts the messages in maildirs.

Another problem is that the maildirs are only accessible by the special user vpopmail. You can forward select addresses to your Linux shell mail account (your_username@your_server.phpwebhosting.com) and have direct access to the maildirs there to convert them to mbox format. However this becomes complicated and we are unable to provide technical support for it.

I would say the bottom line would be that if you enjoy messing with things a bit, you would be able to make it work. If you want it to just work right away, I would advise against it.

Underneath the control panel we attempt to provide as pure of a Linux shell account experience as we can. If you like developing in that environment then you can probably make what you want to work happen. However you would be on your own. We only are able to provide official support for the email configuration in the control panel (having said that, I personally send all my mail to the shell and read/manage my mail in a mbox-format with a shell mail reader – so it is possible).

I hope this has helped.

Can I control php’s register globals option?

Question:

Hi there. I am taking up web design and was wondering something: Is REGISTER_GLOBALS turned on or off? I hope you can help me with this and thank you for your time!

Answer:

Hi,

Thanks for contacting us!

You can have register_globals turned on or off for your site depending upon your needs. It is best to keep it turned off, but some older applications still require it be turned on so you have that option too.

The php website has more information about register globals at :

http://www.php.net/register_globals

Please let me know if you need anything else!

I have created a mail account, now how do I use it?

To send/receive mail from your domain, you can either set-up a local mail program (running on your computer) or use one of our webmail programs at post.phpwebhosting.com.

The most popular local mail programs are either Outlook (for Windows) or Mail (for a Mac). Most computers come with one or the other pre-installed. Here is a quick tutorial for setting up Outlook –

http://www.phpwebhosting.com/help/nick/Outlook_Set_Up.htm

If you don’t have experience using a local mail program like Outlook, I would suggest starting with one of our webmail programs. They work similar to Yahoo or Hotmail where you simply connect to them via the internet.

To use of of our webmail programs, just go to post.phpwebhosting.com and select which mail program you would like to use (UebiMiau or Nural Storm). Once you select the program, you must enter the name of the mailbox you are trying to access, the password assigned to that mail account, and your domain name. You will then get a web interface with options for sending and receiving mail.

Please see one of our other tutorials for detailed information on using our mail system.

How can we make our site secure?

Using SSL involves purchasing an SSL Certificate and installing it to your account.

A certificate is $59 per year and will match both www.yourdomain.com and yourdomain.com – many SSL providers only allow one name. Ours will cover both.

There is also a $2 monthly charge for a dedicated IP address. A dedicated IP is required for SSL to work (with any hosting company). Most Search Engine Optimization (SEO) experts also believe that a dedicated IP can improve your search engine rankings.

The first step in getting an SSL certificate is answering the following questions (required to create the cert) :

Country Name (two letter code – example: US)
State or Province Name (full name)
Locality Name (eg – city)
Organization Name (eg – company name)
Organizational Unit Name (eg – section or department – this is optional)
Secure URL (eg – secure.yourdomain.com, www.yourdomain.com, etc.)
Email Address
An optional company name (this is optional)

Note: The secure URL is the URL that the cert will work for. If you use www.yourdomain.com, we will add yourdomain.com for free.

Enter this information into a support ticket along with a statement such as “I approve the $59 yearly cert fee and $2 monthly dedicated IP fee” and we can have your cert ready in a few hours in most cases.

Do you support the script 1-2-3 music store?

Question :

Hello,

I want to run a script called the 1-2-3 music store (http://www.easybe.com/requirements.html) on my account. This system has the following requirements:

Php version 4.1 or later
Php SAFE_MODE needs to be OFF
MySQL database version 3.23 or later
Does my account on your service meet these requirements?
Thank you.

Answer:

Yes, all those requirements are met. The script should run and install. Please note that we have not used the script ourselves and cannot provide help with the install. However all the requirements are met and the script should run fine on your account with us.

Do you offer fixed / static IP addresses and dedicated IP addresses

Question :

Hi, I need to know if you can provide me a fixed IP. I need it because I want to conect to a xml web service, and they have to know my IP to give me permission to the web service.

Answer:

Hi,

Yes, your account will have a fixed IP.

Do you also mean a dedicated IP? We can provide that as well (no charge) but you’ll need to put in a request for it.

Do you support tar, gzip, zip, unzip, bzip, etc. ?

Question:

Just getting started with you. I’m migrating from another ISP. I have a tar file (sizable) with my site content. Do you have a tool on board for unpacking this? How might I use it?

Thanks.

Answer:

Hi,

No problem. All the standard unix tools are pre-installed. You can ssh to your account and use your account nearly exactly like a standard linux box (except that you do not have root access on it 🙂

All those tools are in :

/bin/

or

/usr/bin/

however your paths are set so you can just type the command and it will work for you.

Let me know if you need anything else!

I’m trying to delete files created via a php application, but the files are owned by user ‘nobody’. How can I delete or modify these files?

If you run scripts through the mod_php module (the default) any files created by the scripts are owned by the system (user ‘nobody’). These files can only be deleted by your scripts (not by you through ftp). To fix, we must run a script that will chown or change owner of the files back to your username.

Please note: By default, our script will chown everything under your home directory. Some programs require some files/directories to be owned by the system and chowning these files to your username can break the application. If you know this to be true with your application, please tell us this and let us know which files/directories to manually chown.

Please put “chown request” in the subject line of your help desk request.