Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-11-10, 01:26 PM
Junior Member
 
Join Date: Nov 2005
Posts: 3
tonyg
Default

I am a newbie. I'm sure this question reveals that. I have been coding in PHP though for a while on Windows so I know a bit about that.

Anyhow, we installed Ubuntu Hoary, and Apache, PHP4,
MySql etc. on a new server.

Everything was great - phptest.php w/ phpinfo() worked fine from a remote browser, yada yada.

Then, on the server, I messed around with sudo chmod, taking away permissions from the world for accessing /var/www, then putting permissions back.

Now if I access the directory through a browser, instead of executing php files, it prompts to download then!!!!

Crap! What the hell did I do??? Help!!!!!
Reply With Quote
  #2 (permalink)  
Old 2005-12-11, 01:03 AM
Senior Member
 
Join Date: Dec 2004
Posts: 199
strasm is an unknown quantity at this point
Default

Find in your apache config files where it has:

Code:
LoadModule php4_module modules/libphp4.so
make sure that under it you have:

Code:
AddType application/x-httpd-php .php
and all make sure you have:

Code:
DirectoryIndex index.php

My guess is that you have these in seperate files and that you change the permissions on them so that apache can't read them. find the files and chmod them back so that apache can read them.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:07 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.