Go Back   SitePoint Forums > Forum Index > Program Your Site > Java and JSP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Closed Thread
 
Thread Tools Display Modes
Old Sep 7, 2000, 01:31   #1
RussellG
@russellg
 
RussellG's Avatar
 
Join Date: Jun 2000
Location: Gold Coast, Queensland
Posts: 449
I get the following error when I do so:

Quote:
A required .DLL file, PHP4TS.DLL was not found.
I made a new folder in my Personal web server file (not in wwwroot) called PHP and thats what happens.

Also, how do I chmod cgi/pl scripts using PWS?
__________________
russell.cz.cc - coming soon (I promise!)
RussellG is offline  
Old Sep 7, 2000, 11:57   #2
qslack
SitePoint Wizard
 
Join Date: Jul 1999
Location: Chicago
Posts: 2,633
Open your PHP.ini file in your C:\Windows or WinNT directory and make the following changes:
Code:
extension_dir	=	./
Whatever that extension_dir variable is (right now it's ./), change it to the directory in which you store your PHP .DLL files.

I suggest reinstalling PHP into C:\PHP.

As for the chmod question: chmod'ing is only for unix-based OSes like Linux, FreeBSD, and Solaris. When you're using MS Personal Web Server you just need to set the permissions. Here's a quick reference:

Scripts = .ASP files can be executed in this directory

Executables = Anything, that once executed, returns text can be executed. Examples include C programs, Perl, and PHP. The output must be given through stdout.

None = No dynamic content (SSI, Executables, Scripts, etc.) may be used in this folder.

So open up MS PWS and click on the bottom left button (I forget the label) and then that's where you set "permissions."

Hope this helps..

p.s. I'm not 100% sure what IIS/PWS considers a script, executable, etc., so anyone who does feel free to mention if I'm wrong or right.

qslack is offline  
Old Sep 8, 2000, 21:42   #3
RussellG
@russellg
 
RussellG's Avatar
 
Join Date: Jun 2000
Location: Gold Coast, Queensland
Posts: 449
Ok I've done all that and now my PHP file resides in C:\Inetpub\php.

So I made a test page called 'test.php' all it had to do was show the time using some php and it didn't work.

Can anyone else shed some light?
__________________
russell.cz.cc - coming soon (I promise!)
RussellG is offline  
Old Sep 8, 2000, 22:03   #4
Hierophant
Your Lord and Master, Foamy
gold trophy
 
Hierophant's Avatar
 
Join Date: Aug 1999
Location: Lancaster, Ca. USA
Posts: 12,363
Since I just installed PHP today I can answer this. PHP4TS.DLL needs to reside in your Windows System directory.

But to be honest I followed the directions posted on PHP.net and it still didn't work. It was really frustrating but I found a distribution of PHP 4.02 wrapped in a WISE installation package. Ran that and PHP worked right off. It even comes with a test script to make sure and a few links to get you started.

You can find it at:
http://php.weblogs.com/easywindows

I hope this helps and Easywindows was the ticket for me to get it running under Windows 98. Now if I can get a good connection to MySQL.com and download that at more than 100 bytes a second I can be a happy camper and work on Kevin's tutorial... Though I might change it to use a SQL Server database.
__________________
Wayne Luke
------------

Hierophant is offline  
Old Sep 8, 2000, 22:13   #5
freddydoesphp
Dumb PHP codin' cat
 
Join Date: Aug 2000
Location: San Diego, CA
Posts: 5,460
Good call wluke! Iwas pulling my hair out two night ago trying to get PHP to work with pws and I use the easy installer at:
http://php.weblogs.com/easywindows

And it was solved within minutes!
__________________
Please don't PM me with questions.
Use the forums, that is what they are here for.
freddydoesphp is offline  
Old Sep 8, 2000, 22:43   #6
Hierophant
Your Lord and Master, Foamy
gold trophy
 
Hierophant's Avatar
 
Join Date: Aug 1999
Location: Lancaster, Ca. USA
Posts: 12,363
Oh to set permissions just click on the Advanced button. Highlight the folder you want to change permissions for and click on "Permissions".

TO make sure PHP works make sure all three options are selected (Read, Execute, Script). Voila your done... No CHMOD needed.
__________________
Wayne Luke
------------

Hierophant is offline  
Old Sep 9, 2000, 00:40   #7
RussellG
@russellg
 
RussellG's Avatar
 
Join Date: Jun 2000
Location: Gold Coast, Queensland
Posts: 449
Ok I've done everything Wayne has told me to do (BTW thanks for that link) and I get this error:


HTTP Error 403
403.1 Forbidden: Execute Access Forbidden

This error can be caused if you try to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

Please contact the Web server's administrator if the problem persists.


Weird eh? Anyway to fix this?

If I'm getting on anyones nerves I apologise, I just really want to get this working
__________________
russell.cz.cc - coming soon (I promise!)
RussellG is offline  
Old Sep 9, 2000, 02:59   #8
freddydoesphp
Dumb PHP codin' cat
 
Join Date: Aug 2000
Location: San Diego, CA
Posts: 5,460
Here is a slighly different approach you may want to try
http://www.planetkc.com/quick/index.html
__________________
Please don't PM me with questions.
Use the forums, that is what they are here for.
freddydoesphp is offline  
Old Sep 9, 2000, 05:18   #9
Hierophant
Your Lord and Master, Foamy
gold trophy
 
Hierophant's Avatar
 
Join Date: Aug 1999
Location: Lancaster, Ca. USA
Posts: 12,363
Go into PWS. Click on Advanced. Make sure that the first entry is selected and click on permissions. Check all three boxes. Click ok. Close PWS. Right Click on the PWS icon and Stop the Service then Restart it.

When every you change the application you must stop then restart the service.
__________________
Wayne Luke
------------

Hierophant is offline  
Old Sep 9, 2000, 20:17   #10
RussellG
@russellg
 
RussellG's Avatar
 
Join Date: Jun 2000
Location: Gold Coast, Queensland
Posts: 449
Tried that

But heres a thought, I'm actually 'logged in' on my comp, wouldnt I have to be 'root' for it to work?
__________________
russell.cz.cc - coming soon (I promise!)
RussellG is offline  
Old Sep 9, 2000, 23:13   #11
Hierophant
Your Lord and Master, Foamy
gold trophy
 
Hierophant's Avatar
 
Join Date: Aug 1999
Location: Lancaster, Ca. USA
Posts: 12,363
No such thing as Root in Windows 9X.
__________________
Wayne Luke
------------

Hierophant is offline  
Old Sep 10, 2000, 01:05   #12
RussellG
@russellg
 
RussellG's Avatar
 
Join Date: Jun 2000
Location: Gold Coast, Queensland
Posts: 449
good point.

oh well, I'll work it out.
__________________
russell.cz.cc - coming soon (I promise!)
RussellG is offline  
Closed Thread

Bookmarks

« Previous Thread | Next Thread »

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


All times are GMT -7. The time now is 21:16.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved