Administrator rights [Solved]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Administrator rights [Solved]

Postby nieve1 » 23. September 2018 17:27

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]
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby Altrea » 23. September 2018 21:30

rightclick your xampp-control.exe and choose run as Administrator
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9292
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Administrator rights [Solved]

Postby nieve1 » 23. September 2018 22:37

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 :)
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby Altrea » 23. September 2018 22:47

I can't without knowing anything about your code.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9292
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Administrator rights [Solved]

Postby nieve1 » 24. September 2018 02:45

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".
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby Altrea » 24. September 2018 11:28

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9292
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Administrator rights [Solved]

Postby nieve1 » 24. September 2018 17:05

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
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby Nobbie » 24. September 2018 21:29

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.
Nobbie
 
Posts: 10508
Joined: 09. March 2008 13:04

Re: Administrator rights [Solved]

Postby nieve1 » 24. September 2018 21:37

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
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby Nobbie » 24. September 2018 22:11

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.
Nobbie
 
Posts: 10508
Joined: 09. March 2008 13:04

Re: Administrator rights [Solved]

Postby nieve1 » 25. September 2018 00:06

Uper-lower case in numbers ? My img statement is:
<img src="20161016-220121.jpg" alt="Me">
and that picture is in localhost/dashboard .... Thanks
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby nieve1 » 25. September 2018 00:13

And that picture is also in the htdocs directory ....
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby Nobbie » 25. September 2018 00:27

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.
Nobbie
 
Posts: 10508
Joined: 09. March 2008 13:04

Re: Administrator rights [Solved]

Postby nieve1 » 25. September 2018 03:33

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 ?
nieve1
 
Posts: 10
Joined: 23. September 2018 04:17
XAMPP version: 7.2.9
Operating System: Windows 10

Re: Administrator rights [Solved]

Postby Altrea » 25. September 2018 05:42

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9292
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests