Welcome to Geeklog Sunday, March 29 2020 @ 07:51 am EDT

Geeklog Forums

failed to open stream: Permission denied in~


JLick

Anonymous
unfocused
Hi, i get this error when trying to install:

PHP Formatted Code
Warning: fopen(D:/Hosting/5548871/html/siteconfig.php) [function.fopen]: failed to open stream: Permission denied in D:\Hosting\5548871\html\admin\install\index.php on line 1190

Warning: fwrite(): supplied argument is not a valid stream resource in D:\Hosting\5548871\html\admin\install\index.php on line 1191
Unable to modify D:/Hosting/5548871/html/siteconfig.php. Did you make sure the file is writable by the web server?


Having trouble trying to figure out the problem =(
Thanks in advance for the help.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
During the install, the install script needs write access to the siteconfig.php (and db-config.php) file. Looks like that's not the case.

I'm not on Windows, so can't test it: Did you not get a warning message about this on the first page of the install script?

bye, Dirk
 Quote

JLick

Anonymous
Oh yup.

The installer was unable to locate critical Geeklog files. This is probably because you have moved them from their default location. Please specify the paths to the files and directories below:

So I changed it to: D:/Hosting/5548871/html/db-config.php and it took me to the next step.

Also, thanks for fast response =)
 Quote

JLick

Anonymous
angry
Tried even more things, read through this forum, still no luck =(
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Can you be more specific, please? What's the problem now? Still the same? What did you try? What happened?

I wouldn't know how to make a file writable on Windows, but the Geeklog Demo Site is running on Windows, for example, so it sure is possible ...

bye, Dirk
 Quote

JLick

Anonymous
Yes, still the same problem. I tried changing the path in the file on lines 1190 & 1191 and no help. I think I should just fix my root folder on website and try to make it mimic the guide, maybe then I will be successful xD

Thanks for your replies and help Dirk, I will keep on pushing through until I have my site working =)
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
I was hoping for some of our Windows users to jump in with tips ...

Let us know how it goes. We should really add some better instructions and troubleshooting tips for Windows.

bye, Dirk
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1387
Quote by: JLick

Hi, i get this error when trying to install:

PHP Formatted Code
Warning: fopen(D:/Hosting/5548871/html/siteconfig.php) [function.fopen]: failed to open stream: Permission denied in D:Hosting5548871htmladmininstallindex.php on line 1190

Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting5548871htmladmininstallindex.php on line 1191
Unable to modify D:/Hosting/5548871/html/siteconfig.php. Did you make sure the file is writable by the web server?


Having trouble trying to figure out the problem =(
Thanks in advance for the help.



It looks like you had the right paths initially but the web service does not have permission to write to the file To make those files writable in Windows. Open up Windows explorer, find the files and then right click to bring up a menu and click properties. From here you can then click the security tab. From there you have to add the user (that the web service uses) and give it write and modify permissions.
One of the Geeklog Core Developers.
 Quote

Status: offline

Habitual

Forum User
Chatty
Registered: 28/01/10
Posts: 54
Location:Yawnstown, Oh. USA
In WinTendo Explorer, do a
Start >> Run... > D:\Hosting\5548871 and hit enter.
Find and highlight the html folder, and right mouse click.
Select either Properties (then Security Tab) or Security and Permissions (I think that's it)
Make sure "System " is listed in the list with ALL Permissions checked.

If System is not listed there, hit the Add button and type in System and then hit the
"Check Names" button. It will add System.
Restart XAMP service and try again.

That should help.

 Quote

All times are EDT. The time is now 07:51 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content