gWorldz / get-simple-cms

Automatically exported from code.google.com/p/get-simple-cms
GNU General Public License v3.0
0 stars 0 forks source link

Installing on non-default server ports. #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by martijn.personal@gmail.com on 1 May 2011 at 10:52

GoogleCodeExporter commented 9 years ago
if this works an all your installations, please update the SVN and We can try 
it on ours... thanks for picking this up martijn

Original comment by ccagle8 on 1 May 2011 at 11:59

GoogleCodeExporter commented 9 years ago
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.

Original comment by martijn.personal@gmail.com on 2 May 2011 at 5:49

GoogleCodeExporter commented 9 years ago
no problem. if you post the updated suggest_site_path() code here i can make 
the update.

Original comment by ccagle8 on 2 May 2011 at 5:59

GoogleCodeExporter commented 9 years ago
Fix committed at r498. Tested by me only, installed GS on localhost (port 80) 
and on localhost:6789 (port 6789).

Original comment by martijn.personal@gmail.com on 14 Jun 2011 at 9:57