Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2007, 08:11 AM
thnet's Avatar
Member
 
Join Date: Oct 2007
Location: basement
Posts: 91
Default php error

I have a site with simple php page:
http://alabanzayadoracion.org/preview.php which as you see gives error:
error makes no sense, since, @ line 55 - 62 is:

Code:
{
      echo "<img src='http://alabanzayadoracion.org/graphics/himn1.gif' border='0' />";
   }
   
   echo
?>
   <br>
   <br>
the nearest ; is line 56 --- line 60 is just a ?>

however, have same page on former server (xxdaddy)
and it runs fine on plesk with older ver. of php:
MAA Player - Ministerios Alabanza y Adoración - Cantad al Señor

hican cpanel server: 5.2.4 phpinfo()
nodaddy plesk server: 4.2.2 phpinfo()

Do I need to downgrade php, & if so, how? do I need to add edited php.ini to the domain?


Thanks...
Reply With Quote
  #2 (permalink)  
Old 12-13-2007, 09:28 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,749
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Hey man,

What you should do is this:

How to: Change PHP Modes and Versions

That way you can downgrade, etc ... without causing issues.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #3 (permalink)  
Old 12-13-2007, 10:45 AM
thnet's Avatar
Member
 
Join Date: Oct 2007
Location: basement
Posts: 91
Default

Quote:
Originally Posted by lnxcode View Post
Hey man,

What you should do is this:

How to: Change PHP Modes and Versions

Hey Folks (one of those Sunday nights, so I decided to write a howto):
  • Login to /whm
  • Go to >> Service Configuration >> Configure PHP and SuExec
  • Here you can change:
    • PHP Version: 4/5
    • PHP 5 Handler: DSO (Module), CGI, SuPHP, None
    • PHP 4 Hander: DSO (Module), CGI, SuPHP, None
    • Suexec: Yes / No
  • Click: Save New Configuration
You're done! You can change versions in seconds, and be able to rock the world with your new PHP settings.
That way you can downgrade, etc ... without causing issues.
Is it wise to "down grade" -- what if another site needs the later version?
I read another faq to add entry to .htaccess for individual domain to change
php version.
Reply With Quote
  #4 (permalink)  
Old 12-13-2007, 12:52 PM
thnet's Avatar
Member
 
Join Date: Oct 2007
Location: basement
Posts: 91
Default no such settings

Quote:
Originally Posted by lnxcode View Post
Hey man,

What you should do is this:

How to: Change PHP Modes and Versions

That way you can downgrade, etc ... without causing issues.Originally Posted by lnxcode
Hey man,

What you should do is this:

How to: Change PHP Modes and Versions

Hey Folks (one of those Sunday nights, so I decided to write a howto):
Login to /whm
Go to >> Service Configuration >> Configure PHP and SuExec
Here you can change:
PHP Version: 4/5
PHP 5 Handler: DSO (Module), CGI, SuPHP, None
PHP 4 Hander: DSO (Module), CGI, SuPHP, None
Suexec: Yes / No
Click: Save New Configuration
You're done! You can change versions in seconds, and be able to rock the world with your new PHP settings.
That way you can downgrade, etc ... without causing issues.
there are no such settings in my whm:
Login to /whm
Go to >> Service Configuration >> Configure PHP and SuExec

besides, Is it wise to "down grade" -- what if another site needs the later version?
I read another faq to add entry to .htaccess for individual domain to change
php version.

I'm not even certain that it is a version issue, perhaps, just a setting needs to be changed?
Reply With Quote
  #5 (permalink)  
Old 12-13-2007, 12:56 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,749
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Yes, you can use this page to change the PHP versions that are running on your site. From PHP5 to PHP4 and Module (DSO) or CGI ... This you will have to play with until your scripts works.

For Godaddy.com its: DSO PHP4
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #6 (permalink)  
Old 12-13-2007, 01:04 PM
thnet's Avatar
Member
 
Join Date: Oct 2007
Location: basement
Posts: 91
Default

Quote:
Originally Posted by lnxcode View Post
Yes, you can use this page to change the PHP versions that are running on your site. From PHP5 to PHP4 and Module (DSO) or CGI ... This you will have to play with until your scripts works.

For Godaddy.com its: DSO PHP4
there are no such settings in my whm:
Login to /whm
Go to >> Service Configuration >> Configure PHP and SuExec
Reply With Quote
  #7 (permalink)  
Old 12-15-2007, 02:38 PM
itwasntme's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 118
Default

Why downgrade?

You should just fix the code so you can run the newer versions of PHP.

It looks to me like you are just missing a semicolon. The code you showed should be:
Code:
{
      echo "<img src='http://alabanzayadoracion.org/graphics/himn1.gif' border='0' />";
   }
   
   echo "<br><br>";
with a semicolon after the second "echo". Or, if you just want to end your PHP and start with the HTML just remove the second "echo" altogether:
Code:
{
      echo "<img src='http://alabanzayadoracion.org/graphics/himn1.gif' border='0' />";
   }
?>
   <br>
   <br>
Reply With Quote
  #8 (permalink)  
Old 12-16-2007, 09:44 PM
Scott's Avatar
Senior Member
 
Join Date: Sep 2007
Location: hostican-coupon.com
Posts: 1,144
Default

I dont know PHP too well, but I also noticed the error in the code with the standalone echo command.
__________________
HostICan Discount - New customer? Save $50 on your HostICan hosting purchase!
HostICan Hosting Reviews - See what other customers say about HostICan.
Simple Hosting - Web Hosting Made Simple!
Reply With Quote
  #9 (permalink)  
Old 12-17-2007, 09:06 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,749
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by Scott View Post
I dont know PHP too well, but I also noticed the error in the code with the standalone echo command.
By the sounds of it, PHP has reworked its PHP version 5 completely.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #10 (permalink)  
Old 12-17-2007, 11:13 AM
Scott's Avatar
Senior Member
 
Join Date: Sep 2007
Location: hostican-coupon.com
Posts: 1,144
Default

That's what I've been studying though, PHP5.
__________________
HostICan Discount - New customer? Save $50 on your HostICan hosting purchase!
HostICan Hosting Reviews - See what other customers say about HostICan.
Simple Hosting - Web Hosting Made Simple!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: Change PHP Modes and Versions lnxcode Virtual Private Servers (VPS) 3 02-08-2008 05:04 PM
PHP compiling on VPS roger Virtual Private Servers (VPS) 2 12-08-2007 07:34 PM
How To: Compile your PHP as CGI lnxcode Virtual Private Servers (VPS) 5 10-30-2007 04:51 AM
Cannot Allocate Memory Error itwasntme Virtual Private Servers (VPS) 10 10-26-2007 02:18 PM
CGI error domz Shared Hosting 3 10-04-2007 03:10 AM


All times are GMT -4. The time now is 02:44 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.