hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : .phps?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

.phps?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-11-2003, 10:33 AM
andy18 andy18 is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Malaysia
Posts: 698

.phps?


Hello,

I have some problem displaying .phps on my linux box.

I have checked on httpd.conf and ensure that the following is added to it :

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps

I have also checked in php.ini that the output_buffering = Off

But when I try to execute the .phps on the browser , the file cannot be loaded showing some DNS error. ( Does this make any sense ?? )

Then , I try to access the page in ssh using lynx command :

Looking up www.domain.org
www.domain.org
Making HTTP connection to www.domain.org
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access `http://www.domain.org/php/test.phps'
Alert!: Unable to access document.

lynx: Can't access startfile


Hope some one might help me out.

Thanks


Andy

Reply With Quote


Sponsored Links
  #2  
Old 05-11-2003, 05:30 PM
skiingyac skiingyac is offline
Junior Guru Wannabe
 
Join Date: Aug 2002
Posts: 62
What does apache's access & error log say?

__________________
__________________
SkiingYAC Custom Solutions http://www.skiingyac.com
system administration, development, design, & hosting

Reply With Quote
  #3  
Old 05-11-2003, 06:54 PM
andy18 andy18 is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Malaysia
Posts: 698
nothing abnormal from both the error_log and access_log.

????

Reply With Quote
Sponsored Links
  #4  
Old 05-11-2003, 07:00 PM
rcs rcs is offline
Aspiring Evangelist
 
Join Date: Oct 2002
Location: Tel-Aviv, Israel
Posts: 433
what's in test.phps?
Are other pages works on the site in the php dir?

__________________
Uadm.com - Unix Administration, Security and Support.
http://www.uadm.com
"Unix is user friendly; it's just picky about who its friends are."

Reply With Quote
  #5  
Old 05-11-2003, 07:02 PM
andy18 andy18 is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Malaysia
Posts: 698
ya...all other php is working fine.it's just with the extension .phps file.I am trying to display the php source code on the browser using the .phps extension from php .

test.phps is just one of the file to be displayed on the web browser for the php code.

Thanks

Andy

Reply With Quote
  #6  
Old 05-11-2003, 07:09 PM
rcs rcs is offline
Aspiring Evangelist
 
Join Date: Oct 2002
Location: Tel-Aviv, Israel
Posts: 433

__________________
Uadm.com - Unix Administration, Security and Support.
http://www.uadm.com
"Unix is user friendly; it's just picky about who its friends are."

Reply With Quote
  #7  
Old 05-12-2003, 03:23 PM
andy18 andy18 is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Malaysia
Posts: 698
Hello Rc,

thanks for the link.As stated in my first post , I have set the server_output = off but this does not cure the problem.It might have to do with some setting as other Linux box is working fine with the .phps ext.



Andy

Reply With Quote
  #8  
Old 05-12-2003, 03:27 PM
rcs rcs is offline
Aspiring Evangelist
 
Join Date: Oct 2002
Location: Tel-Aviv, Israel
Posts: 433
If I'm not mistaken they said to comment out server_output, that might do the trick

__________________
Uadm.com - Unix Administration, Security and Support.
http://www.uadm.com
"Unix is user friendly; it's just picky about who its friends are."

Reply With Quote
  #9  
Old 05-12-2003, 03:36 PM
andy18 andy18 is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Malaysia
Posts: 698
Hello Rc,

I have tried commented the line output_buffering = Off but this does not help.







Andy

Reply With Quote
  #10  
Old 05-12-2003, 03:46 PM
rcs rcs is offline
Aspiring Evangelist
 
Join Date: Oct 2002
Location: Tel-Aviv, Israel
Posts: 433
if you also restarted apache I can't tell whats up without looking at your system

__________________
Uadm.com - Unix Administration, Security and Support.
http://www.uadm.com
"Unix is user friendly; it's just picky about who its friends are."

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?