Ubuntu :: Apache Won't Update Htdocs Files?
Jul 6, 2010
I've installed Apache 2 on Ubuntu linux 10.04 as a simple LAN site for testing PHP scripts. But even though I've deleted the default index.html file in htdocs, changed the index file to index.php, put an index.php, chmoded to 775, and gave ownership of the folder to my account, it will not update any of the files. Any time I go to 127.0.1.1 or 127.0.0.1 (Both work, somehow), it has the "It works!" page instead of the page I put there. And yes, I've tried restarting apache, restarting my computer, etc. What's the problem and/or how do I fix it?
tl;dr: Apache keeps displaying the "It works" page even though I've replaced it. How do I fix it?
View 2 Replies
ADVERTISEMENT
Dec 2, 2010
i was trying to move xampp's root directory from /opt/lampp/htdocs to /home/private/htdocs (in order to use Ubuntu One) but when i restarted apache i got "permission denied" when i tried to load the index page.so i said to my self...hey..let's chmod
i entered this three commands in terminal:
Code:
sudo chmod -R 755 /home/private/htdocs
sudo chmod 755 /home/private
sudo chmod 755 /home
('private' is my username)
after a couple of seconds everything begun to disapper, shortcuts on my desktop, my wallpaper...all.i even tried to execute another command with sudo but i got a nice error message that said i don't have permissions to execute bla bla.now i can't even log into my user.
View 4 Replies
View Related
Jun 3, 2010
I'm new at using Ubuntu, I really need to use XAMPP / LAMPP for testing my websites. The problem is that, I can't save files to the HTDOCS of my XAMPP.
View 1 Replies
View Related
Jul 31, 2010
I'm hoping that this is, indeed, a "general" issue and I'm not over-thinking anything but long story short - I can't get my Apache htdocs folder to accept any files without copying via sudo through the terminal.. Also, when viewing a page over my network I'm just seeing the raw text/code for the file and not the intended output.I'm assuming that logging in as "nobody" (current owner of htdocs) would allow me to drag/drop/edit files in the htdocs folder itself but I can't for the life of me deduce what the password is for "nobody". Is there a universal default? The security issue posed by such a default does, however, make me think this is something I possibly set up during installation and forgot about?
View 1 Replies
View Related
Feb 27, 2011
I have my final project and that is. 3 laptops connected to each other using switch and each of it is running ubuntu. One of the laptops is used as a web server. I installed already the xampp but my problem is I don't know how to save file in htdocs. In addition, I have no idea how my website in webserver can be viewed by 2 other laptops. It's just an intranet no need to be viewed through internet.
View 1 Replies
View Related
Sep 10, 2010
i'm a new Ubuntu user and starting with programming, i've already installed XAMPP for LINUX at /opt directory and the Eclipse app to code php, java etc.When I try to write or create a file inside htdocs XAMPP directory the Eclipse outputs this message to me:"Parent of resource: /opt/lampp/htdocs/site/includes/include.php is marked as read-only./ opt/ lampp/ htdocs/site/includes/include.php (Permission denied)"Whats the matter with this possible error?
View 7 Replies
View Related
Feb 1, 2010
I am trying to extract the phpmyadim zip to the htdocs folder. Every time I extract the files to the folder, it does not extract anything. I also tried extracting the file to another folder with success, but when I tried dragging and dropping the folder to the htdocs folder I had no luck. I cant write to the folder.
View 1 Replies
View Related
Mar 1, 2011
Is there a guide somewhere that covers installing Trac? [URL]That one doesn't cover how to link Trac to Apache with mod_python,configuring authentication, or using htdocs to host static content (like the logo image I want to use. Does tracd support authentication and htdocs?
View 1 Replies
View Related
Apr 27, 2010
I've setup both a http server and svn server and have a SVN project residing in the "/srv/svn/kdrepos/THOR/" directory. I would like this project to automatically do a checkout into the /srv/www/htdocs/ on update/commit. Is this in any way possiblely? Some sites (xp-dev) for example offer an option to have a repository automatically 'added' to a webserver. Does anyone know how is done? I'd xp-dev if it wasn't for the fact that I also need full access rights on the machine
View 1 Replies
View Related
Jan 17, 2010
When I go to localhost, and try to open any PHP file, it asks me to download the file rather than run it like it should. JSP doesn't appear to be working either. I'm not to concerned about the JSP though.
I'm running KUbuntu 8.04 with KDE 3 on a 64bit machine.
View 9 Replies
View Related
Oct 20, 2010
I updated my server (Ubuntu 10.04 LTS) today and had about 23 updates in Webmin. After the update suddenly apache doesn't render php pages anymore, instead letting you download the source code for the scripts. I checked the logs and found this:
Code: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory I tried reinstalling php5 but I can't get it to work. I also hope that this was a glitch and that updates that break stuff like this don't get through QA.
View 9 Replies
View Related
Jan 23, 2010
I have a directory in the /var/www folder. I have access to this directory from my windows machine through samba.
Everytime i add new files to the folder where the webpage is locate i need to go to my centos server a type chmod -R 777 /var/www/name
It can't be right that i need to do this everytime i add new files to the folder??
If i dont run this command i can't access this files when I access the webpage throug a browser...
UPDATE: I think It has something to do with the samba user, because if i create the files as root directly on the centos server i dont got the problem ... ?
View 5 Replies
View Related
Feb 3, 2009
I updated my CentOS 5 box recently. But after then my Apache can no longer work; every time I try to start apache, it says started OK but then dies immediately and no error message at all. When I tried 'apachectl restartI', it says apache not running. It has been running fine before the update. I've looked at /var/log/httpd.log but there is not any message about my problem.
View 14 Replies
View Related
Jan 13, 2011
I'm a bit new to installing/upgrading on Linux/Centos so apologies if I've made a basic mistake here.I've searched around for the answer to this question but not found it - but apologies if this has been discussed in the forum before. The issue is that I want to upgrade Apache to version 2.2.12 or higher, because I want to install a second SSL domain on the same IP address. According to this page [URL].. you can do that from version 2.2.12.
Incidentally I've got Centos 5.4 installed. So I've had a little browse around with yum and did a "yum list *httpd* with gave me the following
[Code]...
View 2 Replies
View Related
Nov 24, 2009
after I do all new installation and before i do PHP update my browser can show me apache default page but after update PHP to 5.2.0 I can't even see the default page and always give me Problem loading page and I have 3-4 times reinstall my server which i need to do this as mail serer locally. Here are the version for my php and apache on my server currently :Apache[root@localhost local]# httpd -vServer version: Apache/2.2.14 (Unix)Server built: Oct 14 2009 13:19:18
PHP
[root@localhost local]# php -v
PHP 5.2.11 (cli) (built: Sep 21 2009 14:49:09)
[code]....
View 5 Replies
View Related
Feb 9, 2010
Where are the apache log files located? I just want to see all connections, etc.
View 3 Replies
View Related
Jul 4, 2011
Sounds a bit odd but I'll try explain.My files I want to use in my apache folder now tell me I dont have permission to access them. When I change the permissions again, they just go back to blocked again.
I have Ubuntu 11.04
View 1 Replies
View Related
Jan 4, 2010
I updated several packages on one of my servers on Dec 21st and have been seeing excessive swapfile usage since then. The problem process seems to be httpd which in our environment runs a subversion server as well as serving a number of php pages over https. At present I am having to bounce apache approximately every 5 days as it has used all 8GB swap in that time.
[Code]..
Of the updates listed as installed, the only one that looks likely to affect apache is glibc. Looking at the stats from sar -r I can see swap usage increasing by approx 3% (of 8GB) every hour.
View 3 Replies
View Related
Dec 10, 2010
why Apache is not parsing php code inside html files in LAMP? Whereas the same is working fine in WAMP..
View 6 Replies
View Related
Dec 23, 2010
I have set up a very basic apache server to host my own website (have not set up sql or database or php yet) and I am trying to find out how to fpt or copy my website. I am creating the site in windows and need to know how to transfer it to the server, preferably into the /var/www folder directly.
View 7 Replies
View Related
Jul 19, 2011
At this moment I got a question asking what files should I configure to setup Apache and the client to access should insert something like http://10.0.0.10/mywebsite:8080. I have already installed APache2, and change the listen ports to 8080 at ports.conf (Listen 8080 | Name VirtualHost *:8080) and at /etc/apache2/default (VirtualHosts *:8080). I also found the index.html at /var/www folder. I also changed IP address at /etc/network/interfaces. With this changing, now I can access using http://10.0.0.10:8080. But the problem is, what about the "mywebsite" part?
View 6 Replies
View Related
Dec 20, 2009
how to do Mysql, PHP, Apache installation configuration, module/library update
View 2 Replies
View Related
Aug 26, 2010
I seem to be unable to use the html
Code:
include virtual="test.txt" I have tried following the advice in this thread http://ubuntuforums.org/showthread.php?t=1510098 but it makes no difference. The file is there, but the line is delivered to the browser as-is. Using Lucid and a new install of apache 2.2 from the repository.
View 7 Replies
View Related
Mar 5, 2011
Me and 2 others are working on a website (Bob, Mike, and Joe). We made a group called developers and each of us are in the developers group. The Apache server runs as www-data. When we upload files, the file owner is the users name and the group is "developers".
/etc/group has the following
Code:
www-data:x:33:
bob:x:1000:
mike:x:1001:
[Code]....
I have always just set everything to 775 and just called it good. Well I don't want to wake up to a Russian political message plastered all over the site. It's time I do things properly.
View 3 Replies
View Related
May 10, 2011
My apache ignores index files (index.php ,index.html ,index.htm , ...) and while these files exists in directory apache lists directory content!I mean http://localhost/test/ lists directory content instead of showing index.php!
View 9 Replies
View Related
Apr 28, 2010
i only need localhost for testing some phpnow i get[Wed Apr 28 18:44:57 2010] [error] [client ::1] Symbolic link not allowed or link target not accessible: /srv/www/htdocs
View 9 Replies
View Related
Feb 10, 2016
I am trying to access logs Apache logs (I just installed Apache) and it is giving me permission denied errors. What permissions did you give to yourself in order to access these logs or should I just add this user(myself) to adm group?I can access other log files with no problems for example ssh logs.
View 6 Replies
View Related
Feb 22, 2010
I installed Zend Server CE. Then I uninstalled Zend Server CE and installed PHP5 + Apache using Yast and now *.php files my Firefox want to download not display.
Apache:
apache2
apache2-mod_php5
apache2-prefork
apache2-utils
[Code]....
View 9 Replies
View Related
Sep 2, 2010
The actual file didn't exist. I am confident it came through a site but I am more curious what settings in apache affect the ability to do this?
View 2 Replies
View Related
Nov 14, 2010
i've had my dedicated server for about 16 months now and my log files are huge and I host a few small sites but one of them is quite large and can get a log file (access.log and error.log) of 1-2gb a month so over a year can take up almost 30gb just for that site so I clean them out regularly but I'm wanting a more automated way to do thisi've been thinking of using the find command using something like this but it isn't workingCode:find /var/www -name "*.log" -type f -size +10M -exec echo > {} /;
View 13 Replies
View Related