Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-28-2004, 04:33 PM   #1
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Rep: Reputation: 15
Apache Webserver Help on Slackware 9.1

Im trying to learn PHP, and in the tutorial it instucted me to start an apache webserver. Well, I got it started and I was able to access the server via http://localhost. However, the tutorial then told me to create a document that is HelloWorld.php3 and save it, so I did. I was then supposed to be able to access the page by going to http://localhost/HelloWorld.php3. Unfortunately, it said that site was not available. So next I did a bit of research, and found that if I make it under /home/usernamexxx I can access it by going to http://localhost/~usernamexxx/HelloWorld.php3. So I did this, and it came up as a blank page, even though the php page was supposed to echo "Hello World". Does anyone have any idea what Im doing wrong?
Old 01-28-2004, 04:40 PM   #2
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
have you added php types to your apache config file? i.e., where it says index.html index.htm and so on? also have you added the lines to load and add the php modules?

LoadModule php4_module libexec/
AddModule mod_php4.c

there's also a couple of lines to uncomment in the httpd.conf having to do with php4. then restart apache, apachectl graceful.

>edit: or for php3, if that's what you're using.

Last edited by synaptical; 01-28-2004 at 04:42 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with apache/slackware webserver mole_13 Linux - Networking 3 05-23-2005 01:49 AM
Apache webserver name karupt Linux - Networking 2 08-01-2004 11:55 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache webserver nooodles Linux - Networking 8 06-30-2004 01:04 AM
Can't access webserver IN network (slackware/apache) hcubed Linux - Networking 5 04-14-2004 04:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration