Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : how to run php script with ampss



Threaded Mode | Print  

 how to run php script with ampss (1 Replies, Read 11223 times)
mseker
Group: Member
Post Group: Newbie
Posts: 8
Status:
I have live site , I got the copy of this site and I want to run it on my pc with localhost how I could do this ,my site is an php scrit site with control panel
IP: --   

how to run php script with ampss
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

With the directory you also need to export your PHP Scripts database(.sql file).

Create a Domain in Ampps with same name as your live site. Set the path as you wish. Don't forget to check in Advance Settings to add an entry to hosts file.
http://localhost/ampps/index.php?act=ampps_domainadd

Let Apache restart.

Paste the contents of your web directory into the path you specified.

Create the database in the localhost. Keep the name, user and the password same if possible. Else you will have to change your PHP Scripts config file accordingly. Don't forgot to give the user all privileges to the database.

Import the .sql file which you exported from live server to the database which you just created.

If your PHP script is using Absolute path anywhere like /home/user/anything then you will have to replace that path with your actual path of Windows/Mac in the whole script.

These steps should import your website to localhost.


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 7, 2024, 6:33 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.161