Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Apache to work on laptop 1

Status
Not open for further replies.

DaveMac

Technical User
Apr 9, 2000
161
US
Hi I am new to web programming and am a bit lost. I have downloaded a simple blog app and would like to run it locally on my laptop for notes and such. My question is how do I get it going? I understand with say an ASP blog I would add it to the directory in IIS however with my now loaded Apache and MySQL bundle I do not know what the next step is. I downloaded Apache2Triad which is Apache and MySql together. I also loaded a PHP based Blog with a MySql DB. How do you get Apache to start serving the PHP pages?
 
What happens when you type in the browser? If you get apache's test page or the one installed with the package, all you have to do is put your files in the DocumentRoot. You should have been able to say where you want this to be but if you didn't, look for where your package was installed. Your DocumentRoot will more than likely be a sub-directory called htdocs on a windows machine. If you have no luck finding it, look for the configuration file called httpd.conf. open it with a text editor and look for a directive called DocumentRoot. It will show you the path. If still no joy, apache2triad should have a forum or something that will tell you where the files are.
 
Thanks for the help. I found my folder. It is a folder called htdocs. I now moved the folder lifeblog and all of its contents (several sub-folders and files) to htdocs and no joy in the world tonight. I then moved one blog.php file to the htdocs folder and tried to open it in an ie browser window and nothing. I have not a clue how php works so I am not sure I am even calling it properly. I have only really worked with asp and other ms type tools so this stuff that does not work like that, although great is not in my skill set. I was looking for a simple blog I could use locally on my laptop and maybe print a report or two off the database it used but everyone has gone to php for this stuff.

I am guessing php does not work like asp in that you open the php file in a browser is that correct?
 
Can I assume that apache is working then and you are just having problems with php? If apache is working, use the apache2tiad control panel to get mod_php to work. You will be able to configure and test it right from the cp.
 
Hi, I just moved from IIS to apache, found this very usefull . . .


"Back it up before you do anything or it will all end in tears . . ."

Adrian Paris

Paris Engineering Ltd

- Tech forum dedicated Google search, find answers faster by not searching the junk.
 
That is great information but I do have everything working on my laptop from a config standpoint. My problem is that while the config php files work great my site php files do not. I should be able to copy a lets say test.php to htdocs folder and then load that pages in ie however it does not load. At this point I do not get it and may have to move on since this was just a going to be a quick blog locally that if after using it for a few weeks it had good info and made sense to post out to the web for others to see.

Thanks for the help
 
Go to: Click: Downloads
Click: Try our SourceForge.NET project page.

Download and install, it's a ready made and configured WAMP bundle. PHP is enabled with open ssl and gd (graphics library)

On top of that you also get:
- PHPMyAdmin (a mysql user interface like SQL Server Management Studio)
- Wordpress
- Joomla
etc all done
 
akgta- Thanks for the help. So this is a ready made site and database I can install on my laptop and blog with? I do not need any connections to the web with this do I? This will be completely stand alone local until I decide.
 
I'm slightly cofused, when you say your php config is fine but your pages dont work what do you get if you use a php info file like . . .

<code>
<? phpinfo(); ?>
</code>

does this give you your php config>


Adrian Paris

Paris Engineering Ltd

Google search of just tech forums & articles
(very useful, honest!)
 
yes I can see my mysql and php config pages when loaded
 
There is nothing at all wrong with your set up if this is working (I assume you are running the PHPinfo script in your HTdocs folder), the issue must be with the scripts you are trying to run, do they have the same extentions as your php info page I assume (ie .php not .php4 or anything)


Adrian Paris

Paris Engineering Ltd

Google search of just tech forums & articles
(very useful, honest!)
 
3 days later I am done and have learned a little. OK very little. I don't care it is working. Apache2Triad looked nice but never worked for me due to my issues I am sure. The SourceForge.NET package since it is all bundeled together works out of the box so that is nice.

Thanks akgta and all those that helped
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top