GetSimpleCMS / GetSimpleCMS

GetSimple CMS
http://get-simple.info
GNU General Public License v3.0
392 stars 114 forks source link

Installing on non-default server ports. #198

Closed n00dles closed 11 years ago

n00dles commented 11 years ago

Original author: martijn.personal@gmail.com (May 01, 2011 10:52:14)

Since I run multiple localhost setups simultaneously they all have different port numbers. Trying to install GetSimple on localhost:6789 gives problems when it tries to redirect me to the installation file and when it saves the SITEURL into website.xml.

suggest_site_path() does not take the port into account. A possible fix is adding the following code to the function:

$port = ($p=$_SERVER['SERVER_PORT'])!='80'&&$p!='443'?':'.$p:'';

After this rewrite $fullpath to include $port right after the htmlentities() call.

Original issue: http://code.google.com/p/get-simple-cms/issues/detail?id=198

n00dles commented 11 years ago

From ccagle8 on May 01, 2011 23:59:55 if this works an all your installations, please update the SVN and We can try it on ours... thanks for picking this up martijn

n00dles commented 11 years ago

From martijn.personal@gmail.com on May 02, 2011 17:49:19 Problem is the computer I had SVN set-up on died and cannot get back online. I hope to get SVN set-up on my laptop soonish but thought to put this up here so someone else can go put it in for me.

n00dles commented 11 years ago

From ccagle8 on May 02, 2011 17:59:54 no problem. if you post the updated suggest_site_path() code here i can make the update.

n00dles commented 11 years ago

From martijn.personal@gmail.com on June 14, 2011 09:57:27 Fix committed at r498. Tested by me only, installed GS on localhost (port 80) and on localhost:6789 (port 6789).