Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Slackware Linux Help
Reload this Page help setting up Apache
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Slackware Linux Help For help and Discussion about Slackware linux

Reply
 
Thread Tools Display Modes
Old 07-18-2008   #1 (permalink)
Just Joined!
 
javilin93's Avatar
 
Join Date: Jun 2008
Location: Atlanta
Posts: 32
Send a message via MSN to javilin93
help setting up Apache

Hello everyone :P
I am trying to setup a webserver.Everything is awesome except one thing I see php files as text when i try to view them with the browser.
I uncommented the line to enable php,I checked if the module was there,but i still can not see php files.
I have slackware 12.0,and I am a total noob when it comes to apache.
How can i fix this???

Thanks in advance
__________________
"All You Need Is Love"
-Beatles

My new project Oil cooling my pc,Hopefully it will look something like this
javilin93 is offline   Reply With Quote
Old 07-18-2008   #2 (permalink)
Linux User
 
Join Date: Oct 2007
Location: Tucson AZ
Posts: 400
Check to see if you have the following entries. In your httpd.conf file add to Directory Index: index.php Add '.httpd-php .php' to Add Type Application - near bottom of file. Set Document Root to /var/www/htdocs. In /etc/apache there is a 'php.ini' file. need /var/www/htdocs entered for doc_root.
yancek is offline   Reply With Quote
Old 07-24-2008   #3 (permalink)
Just Joined!
 
javilin93's Avatar
 
Join Date: Jun 2008
Location: Atlanta
Posts: 32
Send a message via MSN to javilin93
hi
I check everything and everything was there,but there is a small problem whenever I try to view anything I get a
Forbidden You don't have permission to access / on this server.
How can this happen last week it was working fine(except the php files).
Do you know how to fix this??
thx in advance
__________________
"All You Need Is Love"
-Beatles

My new project Oil cooling my pc,Hopefully it will look something like this
javilin93 is offline   Reply With Quote
Old 07-24-2008   #4 (permalink)
Linux User
 
Join Date: Oct 2007
Location: Tucson AZ
Posts: 400
If you made any of these changes, you need to re-start apache.
Did you create the info.php file? If not, open a text editor and type the following in it: <?php phpinfo();?>
Save it as info.php in your /var/www/htdocs directory and also a copy in your public_html directory in your home directory. Try accessing it in the /var/www/htdocs by opening a browser and entering: http://localhost/info.php
If that doesn't work (probably won't) open the browser and enter the following:
http://localhost/~javelin93/info.php (change javelin93 to whatever your actual username is. If this works you should get a lot of information which might help resolve the problem.

When you added .httpd-php .php to Add Type Application, did you put the period (.) in front and a space between?

Not sure if this will help. Are you saying that now you are unable to access anything on apache or just not php files?
yancek is offline   Reply With Quote
Old 07-25-2008   #5 (permalink)
Just Joined!
 
javilin93's Avatar
 
Join Date: Jun 2008
Location: Atlanta
Posts: 32
Send a message via MSN to javilin93
I restarted apache,but i get the same thing(403 forbidden).
oh I cannot access anything
__________________
"All You Need Is Love"
-Beatles

My new project Oil cooling my pc,Hopefully it will look something like this
javilin93 is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 06:01 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0