Page 1 of 2

Administrator rights [Solved]

PostPosted: 23. September 2018 17:27
by nieve1
Hi and thanks in advance.
I also get the message I don't have administrator's privileges when I run Apache. However if I try to run "net user administrator /active:yes" I get message "access denied", the same thing if I try with my account and other account I created with admin privileges ( Windows 10 won't let you create an account with name administrator ).
HELP please as I've trying to display pics with the "img" element in html, no matter where I put them and this for the past week. Even in Ubuntu I can't display them and in that netbook I can't install properly xampp because my configuration is 32 bit.

[EDIT by Altrea; splitted from 6 years old original topic]

Re: Administrator rights [Solved]

PostPosted: 23. September 2018 21:30
by Altrea
rightclick your xampp-control.exe and choose run as Administrator

Re: Administrator rights [Solved]

PostPosted: 23. September 2018 22:37
by nieve1
Thank you, now the message is gone, buy my problem of not being able to display a pic remains, it keeps on saying "file not found, it must have been deleted or moved" even if it's in the same directory as the html script. Hope you can work your magic :)

Re: Administrator rights [Solved]

PostPosted: 23. September 2018 22:47
by Altrea
I can't without knowing anything about your code.

Re: Administrator rights [Solved]

PostPosted: 24. September 2018 02:45
by nieve1
Thank you again. Here is what I execute when I open xampp_control:
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Web Page</title>
</head>
<h1>Welcome to My Page!</h1>
<h2>My name is Enrique.</h2>
<h3>You'll like it here.</h3>
</html>

And here is the script where I try to display a picture and try to display links to web sites:
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Test HTML</title>
</head>
<h1>Welcome to My Page!</h1>
<h2>My name is Enrique.</h2>
<h3>You'll like it here.</h3>
</body>
<img src="caca.jpg" alt="no file">
<img src="20161016-220121.jpg" alt="Me">
<p>
</p>
<a href="www.facebook.com">This is the link to Facebook's website</a>
<p>Here is a link to wikiHow: <a href="www.wikihow.com">www.wikihow.com</a></p>
<p><font color="blue">Whales are majestic creatures.</font></p
</body>
</html>

The path that appears for the pic is "file:///C:/xampp/htdocs/MyTestsHtml/20161016-220121.jpg" - same directory as the previous html scripts - and the error message : "file not found".

Re: Administrator rights [Solved]

PostPosted: 24. September 2018 11:28
by Altrea
Why do you install XAMPP and don't use it in any case?
file:/// means you are opening the file directly in your browser (by doubleclick or open dialogue).
You need to request the file like so http://localhost/MyTestsHtml/yourhtmlsitename.html

Re: Administrator rights [Solved]

PostPosted: 24. September 2018 17:05
by nieve1
Hi and thanks.
I don't know why you think I wasn't using xampp because I was. Here is what I do:
- I run xampp with administrator privileges.
- I start Apache
- I type "localhost" and the web page Welcome to XAMPP opens with url: localhost/dashboard.
- In my Chrome browser I type localhost/dashboard/MyLocalhost.html ( I copied it to the dashboard directory and I also copied the pic ).
- the element where I try to open that picture is: <img src="20161016-220121.jpg" alt="Me">
- What I get is : "Object not found" "requested URL wasn't found on this server" plus
404:localhost
Apache/2.4.34 (Win32) OpenSSL/1.1.0i PHP/7.2.9)
localhost ( underlined and tilted with a different colour )

-The links to open web pages don't work either, one example is <a href="www.facebook.com">This is the link to Facebook's website</a>
error message :object not found same as above.

Hope you can help me, I'm very frustrated :( , thanks in advance

Re: Administrator rights [Solved]

PostPosted: 24. September 2018 21:29
by Nobbie
Something is wrong with all your explanations, and its this:

"The path that appears for the pic is "file:///C:/xampp/htdocs/MyTestsHtml/20161016-220121.jpg" - same directory as the previous html scripts - and the error message : "file not found".

Please explain, why and how your browser tells you about "file:///C:/xampp/htdocs/MyTestsHtml/20161016-220121.jpg"??? Your browser CANNOT know anything about file:///C:/xampp/... if you entered http://localhost. You are telling us some kind of impossible nonsense. We cannot help on that any further.

Re: Administrator rights [Solved]

PostPosted: 24. September 2018 21:37
by nieve1
hHi Nobbie, you didn't read my last post. After the reply from Altrea I followed his instructions and here is what I wrote in my previous post:

- In my Chrome browser I type localhost/dashboard/MyLocalhost.html ( I copied it to the dashboard directory and I also copied the pic ).
- the element where I try to open that picture is: <img src="20161016-220121.jpg" alt="Me">
- What I get is : "Object not found" "requested URL wasn't found on this server" plus
404:localhost
Apache/2.4.34 (Win32) OpenSSL/1.1.0i PHP/7.2.9)
localhost ( underlined and tilted with a different colour )

So what you're referring to is NOT my recent post. Hope you do read it now and thanks

Re: Administrator rights [Solved]

PostPosted: 24. September 2018 22:11
by Nobbie
Finally maybe you mistyped the link, or there is a problem with uppercase/lowercase letters. Not found means not found and i swear that this isnt a browser bug or so. You are doing something wrong, its that easy. We cannot help you on that, its on you to find out where you are going wrong. Actually, it cant be soooo difficult.

Re: Administrator rights [Solved]

PostPosted: 25. September 2018 00:06
by nieve1
Uper-lower case in numbers ? My img statement is:
<img src="20161016-220121.jpg" alt="Me">
and that picture is in localhost/dashboard .... Thanks

Re: Administrator rights [Solved]

PostPosted: 25. September 2018 00:13
by nieve1
And that picture is also in the htdocs directory ....

Re: Administrator rights [Solved]

PostPosted: 25. September 2018 00:27
by Nobbie
nieve1 wrote:Uper-lower case in numbers ? My img statement is:
<img src="20161016-220121.jpg" alt="Me">
and that picture is in localhost/dashboard .... Thanks


The extension isnt a number, it is .jpg instead. Sorry, but your stubbornness sucks. Good luck, i am out here.

Re: Administrator rights [Solved]

PostPosted: 25. September 2018 03:33
by nieve1
Yo're a f..... idiot, I didn't ask you to be trying to help users of the software, so stop being as a....e and don't reply to my posts, I was dealing with Altrea and he's much more knowledgeable and polite. Get lost !
You don't even know how to read, I wote that my img statement was:
<img src="20161016-220121.jpg" alt="Me">, is the number the extension in that statement ?

Re: Administrator rights [Solved]

PostPosted: 25. September 2018 05:42
by Altrea
Well, at the end politeness doesn't protect against facts. If Apache is telling a file could not be found, than the file was truly not found. That can have multiple reasons and we must find the real one.

So first of all please provide us the information in your Apache access.log
This will show us which resource Apache was searching exactly.