11
irmtfan
Re: Verify manifile.php....How ?
  • 2006/11/2 14:49

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


you must to put PATH for example:

you can put it like this according to the error in your post

if (is_writable('C:\Inetpub\vhosts\misitio.com\httpdocs\noticias\mainfile.php')){

12
lapsa2000
Re: Verify manifile.php....How ?
  • 2006/11/2 15:59

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


ok...I put the line that gives for such result which appears in the browser, and obtained this:


Parse error: parse error, unexpected $end in C:\Inetpub\vhosts\misitio.com\httpdocs\noticias\mainfile.php on line 7


Really I do not understand...
Persevera...y seguiras
Perseverando !!!

13
irmtfan
Re: Verify manifile.php....How ?
  • 2006/11/2 16:58

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i dont know how do you create that so i must explain from Start.

1- create a new file testwritable.php with this code.
if (is_writable('C:Inetpubvhostsmisitio.comhttpdocsnoticiasmainfile.php')) {
   echo 
'mainfile.php is writable';
} else {
   echo 
'mainfile.php is read-only';
}
?>


2- upload it anywhere you like in the server.

3- run it in your browser

14
Dave_L
Re: Verify manifile.php....How ?
  • 2006/11/2 17:45

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Use forward slashes:

'C:/Inetpub/vhosts/misitio.com/httpdocs/noticias/mainfile.php'

15
lapsa2000
Re: Verify manifile.php....How ?
  • 2006/11/2 20:57

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


thanks to all and you irmtfan for the example.

now if... the result is this:

"mainfile.php is writable"


badly a result, because it must be single reading. (444)


I modify east file from a program FTP and until of the same administrator of the site, it continues informing this error. Since I can make to give attribute of single reading?
Persevera...y seguiras
Perseverando !!!

16
tripmon
Re: Verify manifile.php....How ?
  • 2006/11/2 21:12

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


lapsa,

Not sure what your last post meant...

NOTE: On a Windows hosting system you can not set permissions the same way as you can on a nix or linux host.

You can download Filezilla, a free FTP client which will allow you to see and set permissions for a nix box.

If you are hosting your site on a Windows based server the permission system works differently.

While I can see people have gone to great lengths to help you perform a write test, perhaps it would help us help you more if you stated WHY you are wanting to perform this test, as well as providing server environment information.

17
lapsa2000
Re: Verify manifile.php....How ?
  • 2006/11/2 21:30

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


Hello ... I want to verify this file, because when I enter to the administration of xoops, me this appears:

"ATENCIÓN: el archivo C:/Inetpub/vhosts/misitio.com/httpdocs/mainfile.php es escribible por el servidor.
Por favor, cambie los permisos de este archivo por razones de seguridad.
en Unix (444), en Win32 (sólo lectura)"

Characteristics of the server:

ISAPI
SERVER_PROTOCOL HTTP/1.1 SERVER_SOFTWARE Microsoft-IIS/6.0

Characteristics of xoops:

Version 2.0.15

Module Protector 2.57 Installed

Already use the program filezilla, and I gave to attributes of alone reading across the own administration of the web page in the server also .... but me this mistake continues appearing.
Persevera...y seguiras
Perseverando !!!

18
tripmon
Re: Verify manifile.php....How ?
  • 2006/11/6 8:59

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


you can not set this file to 444 because you are running on a Windows server... just make sure that IIS and Everyone does not have write permission.

Filezilla WILL NOT allow you to set permissions on a Windows Machine.

Most windows hosts will not let you make the changes necessary to get the message to go away from a control panel.. you can ask them to set the file to read only via NTFS permissions and see if they will.

If you really want to remove the message, you will need to:
1) contact your host to set NTFS permissions to read only
2) verify that no accounts have write permissions & manually edit the admin page and remove the warning.

19
lapsa2000
Re: Verify manifile.php....How ?
  • 2006/11/6 22:09

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


Hello Tripmon, this morning I was with the administrator of the server, and together we look at the attributes of the file, from the own server, and in the properties of the file it figures as "single reading" for the common user and "total control" for the administrator of the place and of the server.

I don't understand that of NTFS...that what I have to say to the administrator exactly is?

Thank you and greetings...

notices: the message of I wander it continues appearing in the XOOPS administration.
Persevera...y seguiras
Perseverando !!!

20
nekro
Re: Verify manifile.php....How ?
  • 2006/11/7 3:38

  • nekro

  • Quite a regular

  • Posts: 213

  • Since: 2005/11/9


Sorry because the next post will be entyre in spanish. Spanish is lapsa2000 native language... and looks like he dont understand english quite good.

Veo que sos hispanoparlate... asique te voy a dar ayuda en lengua nativa!... aproposito de donde sos?

Dale permisos de solo lectura al archivo mainfile.php, pero solo lectura para todos para el administrador para todos.

En linux la seguridad se organiza por digitos.

4 - Lectura
2 - Escritura
1 - Ejecucion

y cuando uno quiere convinar permisos los suma... ejemplo 7= todos los permisos

Los grupos de 3 numeros significa que grupo tiene permisos.

El primer numero es el dueño del archivo, el creador por asi decirlo pero no necesariamente. El segundo es el grupo al que pertenece el creador. Y el tercero son todos los demas.

Te recomiendo que pongas el archivo en 444 ( osea 4 <- solo lectura y en las 3 posiciones que significa para todos ). XOOPS no borra ese cartelito rojo hasta que la configuracion sea 444 lo cual no te va a afectar en lo mas minimo ( al contrario, te va a dar mayor seguridad ) en la utilizacion de tu sitio XOOPS ya instalado.

Login

Who's Online

413 user(s) are online (337 user(s) are browsing Support Forums)


Members: 1


Guests: 412


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits