Welcome Guest. Please Login or Register  


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



Normal Mode | Print  

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: --   


Threads
 mseker   how to run php script with ampss (1 Replies, Read 12677 times)
    |--  tidus   Hi, With the...   on April 17, 2013, 8:20 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 10, 2025, 9:45 pm.

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