thibo1025 Posted March 7, 2006 Share Posted March 7, 2006 is there an easy way to install PHP with an apache server and a MYsQl database without installing each seperatly?My problem is that I do not have such thing on my computer. And I want to be able to read php comming from files of my computer so that I can verify if the pages work before hosting them. Link to comment Share on other sites More sharing options...
pulpfiction Posted March 7, 2006 Share Posted March 7, 2006 Hi,I guess EasyPHP will be useful to you.Just "google" for "download easyphp". Link to comment Share on other sites More sharing options...
thibo1025 Posted March 7, 2006 Author Share Posted March 7, 2006 right I forgot that one Thanks for your help.But My other question is Will I be able to read PHP files on my computer and if yes how should I do that? Link to comment Share on other sites More sharing options...
sbrownii Posted March 7, 2006 Share Posted March 7, 2006 xamppfiles for windows can be found hereIf you download the zip you can just unzip it and run it as is. If you like installers then get the installer...If you use linux... then you should be able to figure out how to download something from sourceforge.net ...By reading php files... do you mean to edit them? just use any text editor...Do you mean to view the result of the pages? just access them in your server - usually http://localhost Link to comment Share on other sites More sharing options...
scott100 Posted March 7, 2006 Share Posted March 7, 2006 for example, i create a file login.php and save it here:C:\Program Files\Apache Group\Apache2\htdocsTo view it i would type into address bar: http://127.0.0.1/login.php Link to comment Share on other sites More sharing options...
thibo1025 Posted March 7, 2006 Author Share Posted March 7, 2006 I do not get your message scott but I think it is because I didnt understand how an Apache server works.How can I know the adress to go at after having saved my file Link to comment Share on other sites More sharing options...
pulpfiction Posted March 7, 2006 Share Posted March 7, 2006 After you have saved the file in the folder as told by Scott,type "http://localhost/filename.php"its always "http://localhost/" followed by the filename. Link to comment Share on other sites More sharing options...
thibo1025 Posted March 7, 2006 Author Share Posted March 7, 2006 I understood that but how to know where to save the file to make it appear in my local host? for example if i use XAMPP and installed it in C:\Program Files\XAMPPwhere should I put the file? Link to comment Share on other sites More sharing options...
pulpfiction Posted March 7, 2006 Share Posted March 7, 2006 i am not pretty sure about the XAMPP, but i think we have to save the file inside the folder C:\Program Files\XAMPP (as you said).but if you want to try EasyPHP. the after installation, say its in C:\Program Files\EasyPHP3.1, look for "www" folder. save the PHP files inside that folder. then you are good to go...... Link to comment Share on other sites More sharing options...
sbrownii Posted March 7, 2006 Share Posted March 7, 2006 I think you would do well to read the documentation for what you are using. You can configure Apache to use whatever directory you want as the root directory for your site.But the default would be somewhere inside the apache directory in a folder named "htdocs" as scot100 showed.i think xampp has "/XAMPP/htdocs" as the default DocumentRoot, so you should put your files in C:\Program Files\XAMPP\htdocsif your server won't start, it's probably because there is a problem with the config file. Just post again if you need help. Once you get the idea of how apache's httpd.conf file works, it will get easier... Link to comment Share on other sites More sharing options...
thibo1025 Posted March 7, 2006 Author Share Posted March 7, 2006 Thanks a lot I see how it works by now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now