Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th August 2007, 01:55
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default Error 500 when trying to install php script

I am trying to install my php script. I got the server working . I set up the site and can see it when I enter the domain in my browser outside of the firewall. I uploaded the script to the site in a folder called dsb2. I first tryed to upload it in the root file, but the whole site stoped working. I realy want it so there is no dsb2 file, but am new to how to get it to work without the sub folder.The info from the script told me to enter www.apostolichearts.com/dsb2. then It is supose to show a hyperlink that has install, but it is giving me an error 500. The requested URL caused an internal server error. I tryed to move the file .htaccess to the root file (web) but when I do that nothing works. Can you please help me?
Reply With Quote
Sponsored Links
  #2  
Old 16th August 2007, 09:58
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

It's most probably a line Optioins +Followsymlinks in your .htaccess
Tru removing it if so.

If not, try removing line by line from the .htaccess file, and see what line is causing the error.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #3  
Old 17th August 2007, 00:00
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default removing lines

Can I use # to removing the line in the .htaccess?
Reply With Quote
  #4  
Old 17th August 2007, 00:37
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

Quote:
Originally Posted by cruz
Can I use # to removing the line in the .htaccess?
Yes you can.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #5  
Old 17th August 2007, 08:21
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default mod .htaccess

it worked. I commented out all but the first line. then it worked. Here is the file.
HTML Code:
DirectoryIndex index.php
#Options -Indexes
#php_flag file_uploads on
#php_flag session.use_cookies on
#php_flag register_globals off
#php_flag session.use_trans_sid off
#php_value include_path "."
#php_value error_reporting 2047
#php_flag display_errors off
Wil it hurt not to have these active? I had this script running on another LAMP and I did not have to comment out the lnes. What causes this to hapen? Also, when I uploaded the files to the server I used winSCP3 and had to use root access to upload them. now the filders belong to root. will this be ok? I tryed to use the user name and password from when I made the website in ingconfig but it would not log on under that program. I am very new to most of this stuff. thanks for the help. Any exsplaing on how and why's would be greatly helpful.
Reply With Quote
  #6  
Old 17th August 2007, 09:41
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

If you use ISPconfig than try adding it to the site's Apache Directives.
You will find the Apache Directives in the ISP Site > basis (at the bottom)
Make sure you uncomment the lines again.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #7  
Old 17th August 2007, 22:59
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default apache dirtectives

how do I add it? ISPconfig? enter this in the apache directives? Then I can uncomment out the lines after entering it? Sorry kind of new to this. Just want to do it right.
Reply With Quote
  #8  
Old 18th August 2007, 11:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Originally Posted by cruz
how do I add it? ISPconfig? enter this in the apache directives?
Yes, that's right.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 18th August 2007, 17:59
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default added ispconfig

I added the string ispconfig in the apaches directives and removed the # from the .htaccess file and tryed to bring up the website in the browser and got the same error as when I started. Help!!
Reply With Quote
  #10  
Old 19th August 2007, 14:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

What exactly did you enter? Any errors in Apache's error log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 09:54
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58


All times are GMT +2. The time now is 18:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.