You are here:  » Site Security

Support Forum



Site Security

Submitted by Alastair on Wed, 2007-12-19 00:48 in

Hello, I'm a Price Tapestry newbie so please forgive these rather basic questions....

1. I followed the installation instructions but when I navigate to www.domainname.com/admin I get my website host's admin page rather than price tapestry's

2. I was able to install pricetapestry by just navigating to a php file and running it. I wasn't logged in as the site admin or anything. Is this a PT issue or should I speak to my website hosting company?

3. When I built a very simple website previously, I did it all the html my PC then just uploaded it to a hosting site. How can I modify php scripts and html, test them and then implement them "live"? I don't want to risk fouling up my live site. (I don't have php or mysql on my pc, only on the servers of the company that hosts my site)

4. If the modification work has to be done on my service providers machine, how can I edit the php script and see the results. Do I need an editor? I use 1stpage for html.

Thank you

Submitted by support on Wed, 2007-12-19 10:04

Hello Alastair,

1/
Regarding going to /admin/ bringing up your hosting admin control panel; this must be a result of a global re-write that your web host is doing to make it easy for you to get to it; but unfortunately it means that you cannot have a directory on your site called /admin/. Now, you can rename it; but there is one small change you need to make. In admin/admin_menu.php you will see the following code:

 print "<a href='".$config_baseHREF."admin/'>Admin Home</a>&nbsp;&nbsp;";

If you rename the admin folder to ptadmin, then the above code would simply need to be changed as follows:

 print "<a href='".$config_baseHREF."ptadmin/'>Admin Home</a>&nbsp;&nbsp;";

2/
This is no problem - you are supposed to be able to install the script just by running setup.php Once it has created the database, there is nothing else that setup.php can do, so there is no security risk in leaving it on your server.

3/4/
Whilst you can modify the files on your local computer (and it is recommended that you do do this because it means that you always have a backup copy of your site), you probably won't be able to view the results unless you install a webserver, which is certainly possible but can be complicated to setup. However, if you wanted to try this, there are some "ready-to-go" installations of Apache, PHP and MySQL for Windows:

http://www.wampserver.com/en/

Most people however make changes to the files (you can use any text editor to edit PHP files), and upload the files to their live site to test the changes, and if they don't work then quickly undo the changes and upload the fixed version.

Another option of course is to create a separate, "test" installation of Price Tapestry on your site, in a sub-directory and with a separate database. Then, you could make the changes to the files on your local PC (again, you can edit PHP files with any text editor), then upload the changes (via FTP) to your test site; and when you are happy with the changes then upload them to your live site. That maybe easier than installing Apache on your PC...!

Hope this helps,
Cheers,
David.

Submitted by Alastair on Wed, 2007-12-19 21:07

Thank you David