Reply
PHP pages not running within a subdirectory?
Old 07-30-2010, 10:01 AM PHP pages not running within a subdirectory?
leebert45's Avatar
Novice Talker

Posts: 14
Name: Lee Wentzel
Location: Michigan, USA
Trades: 0
Folks,

I am working on a friends site. To allow his existing site to stay up and running and still be able to test the new site on his server, I created a folder (subdirectory) named "new". Initially .htm files wouldn't run, so I changed the permission on that folder to 777. That resolved the .htm files, however I am still having the same issues with .php files. To test them I need to put them in the root folder. Which really doesn't makes sense to me. Any suggestions? I have tried changing the permissions on the .php files as well, but this didn't seem to resolve the issue.

Thanks.

Leebert
__________________
It's never "just a game" when you're winning.
~ George Carlin ~
leebert45 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-30-2010, 10:59 AM Re: PHP pages not running within a subdirectory?
chrishirst's Avatar
Super Moderator

Posts: 32,316
Location: Blackpool. UK
Trades: 0
And the "issue" is exactly?

wouldn't run is a little vague.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-03-2010, 10:42 AM Re: PHP pages not running within a subdirectory?
leebert45's Avatar
Novice Talker

Posts: 14
Name: Lee Wentzel
Location: Michigan, USA
Trades: 0
I get an error which reads:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
__________________
It's never "just a game" when you're winning.
~ George Carlin ~
leebert45 is offline
Reply With Quote
View Public Profile
 
Old 08-08-2010, 09:12 AM Re: PHP pages not running within a subdirectory?
chrishirst's Avatar
Super Moderator

Posts: 32,316
Location: Blackpool. UK
Trades: 0
Then you either have an error in your PHP code that only manifests itself in a sub-folder or an error in the .htaccess file in that directory.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-08-2010, 02:43 PM Re: PHP pages not running within a subdirectory?
Novice Talker

Posts: 5
Name: Dan Castellon
Trades: 0
Honestly, it could be the host. What do you use?
__________________
Sky9 Hosting offers unlimited, reliable, PHP/MySQL optimized web hosting. Try us out and you'll instantly notice a difference in speed and support :)
sky9_dan is offline
Reply With Quote
View Public Profile
 
Old 08-08-2010, 03:08 PM Re: PHP pages not running within a subdirectory?
Average Talker

Posts: 22
Name: Justin
Trades: 0
The problem is most likely due to you setting the permissions to 777. Most shared web hosts use suPHP, and it will not run scripts with insecure permissions. Try setting the permissions of the PHP files to 644 or lower, and any directories in which PHP scripts are executed to 755 or lower.
__________________
Free Web Hosting - Premium free cPanel hosting!
justinp is offline
Reply With Quote
View Public Profile Visit justinp's homepage!
 
Reply     « Reply to PHP pages not running within a subdirectory?
 

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12968 seconds with 13 queries