3 Replies - 554 Views - Last Post: 15 December 2010 - 01:48 PM

#1 RyanRobinson  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 39
  • View blog
  • Posts: 227
  • Joined: 31-March 10

500 Server Error

Posted 15 December 2010 - 08:51 AM

Hi guys,

I have recently setup a LAMP server on Ubuntu 10.4 on a tower and the default index.html and <?php phpinfo() ?> files open up correctly on my laptop when I type in my tower's IP address. However when I place my .php file with a simple echo string I get a HTTP 500 server error.

If it helps I set the /var/www folder as a share in Samba.

An ideas?
Is This A Good Question/Topic? 0
  • +

Replies To: 500 Server Error

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6036
  • View blog
  • Posts: 23,429
  • Joined: 23-August 08

Re: 500 Server Error

Posted 15 December 2010 - 09:25 AM

Have you looked in the PHP error log?
Was This Post Helpful? 0
  • +
  • -

#3 RyanRobinson  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 39
  • View blog
  • Posts: 227
  • Joined: 31-March 10

Re: 500 Server Error

Posted 15 December 2010 - 09:41 AM

I think it's something to do with permissions and how my Samba share is configured. When using the Linux box to browse the folder, the files I created using my Windows machine cannot be deleted as I don't have permission. That's why the default Apache files run properly and the ones created by Windows laptop don't, even static HTML files can't render.

Is there a way I can get Samba to allow anonymous read/write access to /var/www ?

Thanks.

This post has been edited by RyanRobinson: 15 December 2010 - 09:41 AM

Was This Post Helpful? 0
  • +
  • -

#4 RyanRobinson  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 39
  • View blog
  • Posts: 227
  • Joined: 31-March 10

Re: 500 Server Error

Posted 15 December 2010 - 01:48 PM

Problem fixed.

I just set the /var/www directory as public in the Samba config file. It's only a local test server so I'm not worried about security.

I guess it must have been a permissions problem.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1