htdocs

Problems with displaying a php-site locally with XAMPP-package. Site works fine on remote server

十年热恋 提交于 2020-01-22 03:15:07
问题 My first ever post on stackoverflow.com! A great site, and I hope my post will contribute to the benefit of others. The situation: I have been entrusted to renovate a really small, existing, php-driven web site. So, I started to set up my environment: Dreamweaver was installed. I FTP'd the files to my computer from the remote server. I choose Apache and MySQL via the XAMPP package to set up a local host on my computer (PC, Windows XP), installed XAMPP and set the passwords that are left out

Can't access php files copied into /var/www/ or other folders

梦想的初衷 提交于 2020-01-03 15:38:28
问题 I'm on Ubuntu 12.10 with LAMP setup. I copied a subdirectory which has project files (php, html, css) from xampp/htdocs on my Windows PC into /var/www/ of my ubuntu. However, when I access those files from browser (I can see the directory listing), I get 403 Forbidden on all files within that directory. So I create new dummy php files within that directory just to see if I can access, and it works. Any idea what might be the problem? 回答1: may be a ownership problem. try do chmod -R 775 /var

Where to find htdocs in XAMPP Mac

≡放荡痞女 提交于 2019-12-31 08:12:49
问题 I cannot find the htdocs directory anywhere on XAMPP for Mac. Many videos on YouTube show people just clicking a button that says "Go to application folder" but on my user interface, it reads: "Go to application" which just opens the localhost page at http://localhost. Where can I locate the htdocs directory? 回答1: Ok I just found the solution. In the "volumes" tab, you have to mount it first. Then it appears on the desktop as if were an external USB. All the data is inside it. :D 回答2: At

Where to find htdocs in XAMPP Mac

心不动则不痛 提交于 2019-12-31 08:12:09
问题 I cannot find the htdocs directory anywhere on XAMPP for Mac. Many videos on YouTube show people just clicking a button that says "Go to application folder" but on my user interface, it reads: "Go to application" which just opens the localhost page at http://localhost. Where can I locate the htdocs directory? 回答1: Ok I just found the solution. In the "volumes" tab, you have to mount it first. Then it appears on the desktop as if were an external USB. All the data is inside it. :D 回答2: At

My http://localhost/ redirecting to www.localhost.com

早过忘川 提交于 2019-12-19 05:15:30
问题 I checked my httpd.conf file and nothing found anything, let me know other areas whr i need to look. Although my other links are working fine like -- http://localhost/phpmyadmin/ or http://localhost/myprojects/ This is what i have in my httpd.conf file - DocumentRoot "C:/xampp/htdocs" # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the

What user does Lampp run under?

最后都变了- 提交于 2019-12-11 19:57:00
问题 I was wondering what user Lampp runs under. For instance, if I install apache without lampp it runs under the user apache. Thank you. 回答1: http://www.apachefriends.org/en/faq-xampp-linux.html#sicherer it says the user name will be lampp I don't know if that's true in general, but it seems to be true for the pages they have you protecting 来源: https://stackoverflow.com/questions/8178527/what-user-does-lampp-run-under

How to run a PHP file on my computer that is outside the htdocs directory?

。_饼干妹妹 提交于 2019-12-10 15:19:40
问题 I just installed Apache and PHP on my computer to be able to run PHP files locally. I can run a PHP file if it is located in Apache2.2\htdocs directory. Is that possible to run PHP files outside this directory ? I'm looking to a simple solution, because all I need is to write a small PHP code and try it locally. I would like to be able to run the PHP file by right clicking it -> Open with Firefox 回答1: There is some ways to do it, but the simplest way is using 'include' or 'required' php

Undo chown and chmod [closed]

我只是一个虾纸丫 提交于 2019-12-10 11:55:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I'm new to Ubuntu. I ran the following commands to save files in htdocs folder (to conveniently use XAMPP for programming) without understanding its security consequences: sudo chown username:groupname /opt/lampp/htdocs sudo chmod 700 /opt/lampp/htdocs I would like to undo the file permissions (on the htdocs

Apache htdocs in folder with unicode name

时光毁灭记忆、已成空白 提交于 2019-12-07 04:51:15
问题 I have my apache (for windows) htdocs in a folder like c:\anything1\怘怙怚怛\anything2. The problem is that in this case php won't execute any scripts from here and will display an error message like this: `Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'c:/anything1/怘怙怚怛/anything2/index.php' (include_path='.;C:\php5\pear') in Unknown on line 0 ` If I try to open a html file, it is served by apache, so it seems

Subversion for web development

随声附和 提交于 2019-12-06 05:10:05
问题 I've read a lot of articles about Subversion and pushing the information to a web server, but I'm still having difficulties. I can understand the basics about creating the repository and checking out etc., but I need help for the web server part. I'm running Apache and Subverion is running on the development server I'm working on. Now do I create my repository in the **htdocs** folder along with my live web documents or do I create it outside of my htdocs folder.; Once I have my repository I