Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Elfs1der

WTF is with Apache

This topic is 5279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, What I want to do is get Apache and PHP running on my computer so i can test out scripts without uploading them to a server. I have followed at least 2 different tutorials on how to get it running, but I keep getting htpp 500 internal server error whenever i try to connect to http://localhost i tried Apache 1.3 and 2.0 and same thing, I dont get any syntax error problems when i run it. Any suggestions/help?

Share this post


Link to post
Share on other sites
Advertisement
Look in /var/log/httpd/error_log and see what it says. I''m not sure where the location of the log file is if you''re on Windows, but do a search for "error_log".

Share this post


Link to post
Share on other sites
I downlaoded "phptriad" a long time ago and i got everything up and running really fast.

PhpTriad will install Apache, Php and MySql stuffs! Definitely good for beginners!

Hope it helps!

Share this post


Link to post
Share on other sites
Best solution
Get xitami which is FREE. Get PHP which is FREE.

Now set up xitami like this:
--
Change password:
1) Run ''xitami.aut'' in Notepad, and change: ''Admin=-'' to ''Admin=password''.
--
Configure CGI:
1) Run xitami.
2) Right-click -> Setup.
3) Enter ''Admin''/''password''.
4) Configuration -> CGI (it''s on the right side)
5) The first ''DEFINE''-button.
6) On the leftside add: ''redirect_status''. On the rightside add: ''200''.
--
Configure PHP:
1) Run xitami.
2) Right-click -> Setup.
3) Enter ''Admin''/''password''.
4) Configuration -> Filters
5) On the leftside add: ''.php''. On the rightside add:''php.exe''.

Now notice, php.exe should be the full path to where you installed PHP.

--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)

Share this post


Link to post
Share on other sites
I still get the same thing happening to me, I do have ICS(internet connection sharing) enabled, you know the 2 NIC cards one with the internet going in, and the other going out to the other computer. Anyways I installed PHPTraid, that didn''t work, and I installed xitami but when i type in http://localhost or 127.0.0.1 it still says http 500 internal server error.

Share this post


Link to post
Share on other sites
Yea it is that, i just figured that out now, how would i get around this?
Oh yea, I'm using windows XP

[edited by - Elfs1der on June 4, 2004 1:41:08 PM]

Share this post


Link to post
Share on other sites
Maybe you have to restart? If you''re in WinXP..

1) Run ''msconfig''.
2) Tab ''Services''.
3) Check the ''Hide Microsoft services''.

You might find that the list is containing a service, that''s necessary for your software to work. (This is true with PHPTriad, although I really recommend using xitami and PHP instead, since PHPTriad is outdated.)

--
You''re Welcome,
Rick Wong
- Google | Google for GameDev.net | GameDev.net''s DirectX FAQ. (not as cool as the Graphics and Theory FAQ)

Share this post


Link to post
Share on other sites
It''s probably the php.ini file in your windows directory.

http://www.php.org <-- has setup instructions.

I just followed the instructions on the site the first time I set it up (about a year and a half ago?) and I had no trouble.

*shrug*

Share this post


Link to post
Share on other sites
http://www.keyfocus.net/kfws/
great webserver.......
it has directions for installing php,
best of all its free and really easy to use and configure



or reconfigure the port you are using to go to your person site
like 127.0.0.1:81\index.php\........

[edited by - ostamo1 on June 4, 2004 12:15:18 AM]

Share this post


Link to post
Share on other sites
There''s no need to use other webservers. Apache 2 is now very easy to setup in Windows, you just need to take some time and read a few doc pages to get it working with PHP.

Personally I consider the effort worthy.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!