|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
@russellg
![]() ![]() ![]() ![]() Join Date: Jun 2000
Location: Gold Coast, Queensland
Posts: 449
|
I get the following error when I do so:
Quote:
Also, how do I chmod cgi/pl scripts using PWS?
__________________
russell.cz.cc - coming soon (I promise!) |
|
|
|
|
|
#2 |
|
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 = ./ 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. |
|
|
|
|
#3 |
|
@russellg
![]() ![]() ![]() ![]() 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!) |
|
|
|
|
#4 |
|
Your Lord and Master, Foamy
![]() 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. ![]() |
|
|
|
|
#5 |
|
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. |
|
|
|
|
#6 |
|
Your Lord and Master, Foamy
![]() 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. |
|
|
|
|
#7 |
|
@russellg
![]() ![]() ![]() ![]() 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!) |
|
|
|
|
#8 |
|
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. |
|
|
|
|
#9 |
|
Your Lord and Master, Foamy
![]() 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. |
|
|
|
|
#10 |
|
@russellg
![]() ![]() ![]() ![]() 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!) |
|
|
|
|
#11 |
|
Your Lord and Master, Foamy
![]() Join Date: Aug 1999
Location: Lancaster, Ca. USA
Posts: 12,363
|
No such thing as Root in Windows 9X.
|
|
|
|
|
#12 |
|
@russellg
![]() ![]() ![]() ![]() 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!) |
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 21:16.












Linear Mode
