Ubuntu Servers :: Website Not Updating Without Apache Restart?

Feb 1, 2011

I've installed Ubuntu server and got everything setup pretty well.My problem is apache.I put my website in /var/www and changed the security on the files to allow them to be executed by other, which is what I finally discovered was my first problem (access denied). But now whenever.I go in and edit my page, the changes aren't reflected on the site unless I completely restart apache.I know I'm doing something wrong because I used to pay for a host and every time I edited a page, it was instantly updated on the site. Could one of you gurus tell me where I screwed up?

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: 9.1 Setup - How To Get Apache To Display Website

Jan 10, 2010

I have Ubuntu 9.1 setup, with ISPCONFIG3, squirrel mail, apache2, mysql, phpmyadmin, phpbb3 so now what, what do I need to do next to setup to get apache to display my website and where do I need to put my web files?

View 1 Replies View Related

Ubuntu Servers :: Apache/PHP Set Root Directory Of Website?

Nov 27, 2010

In my website, I'm putting shared files in a "/global" folder. Both "styles.css" and "library.php" are in this global folder. HTML code seems to be working ok - the following bit works great to pick up a style sheet:

Code:
<link rel="stylesheet" type="text/css" href="/global/styles.css" /> However PHP does not seem to understand my root directory. Using the following does not work:
Code:
include_once("/global/library.php");

I receive a "failed to open stream: No such file or directory" error.Spelling out the entire full path works, like so:

Code:
include_once("/srv/www/mysite/global/library.php");

But this type of code is no good as I may change servers in the future. I have my "DocumentRoot" set correctly in my sites-available file. It seems as if PHP is ignoring it. Is there a config file someplace (htaccess? Local php.ini?) where I should update my root directory for this site only? Or am I following bad form and there's a better way to do this? Relative paths don't seem like the answer here though...

View 5 Replies View Related

Fedora Servers :: Apache Won't Pickup Website

Feb 7, 2010

Apache wont picup my website when i dropped my Site folder in the /var/www/html directory even after starting the Apache service.

View 2 Replies View Related

Ubuntu Servers :: Associate Internal ISS With Website Hosted By Apache?

Apr 18, 2011

we have a dual server setup: Windows server 2003 and Ubuntu 10.04 with apache installed with all the goodies. This is all virtualized. What I'm wanting to do, is make the new website we've created run on the Ubuntu machine, which it is, and be accessible outside the office. However, by doing this, we forfeit being able to use remote access or web exchange on Windows server 2003.

How can I create a link from the new website on Apache point to the internal server and it work outside of the office?

View 7 Replies View Related

Fedora Servers :: Make A Website With A Virtual Host Of Apache Visible?

Nov 8, 2010

In first place i am sorry about my horrible English. I want to make a web site with a virtual host of apache visible by all the computers connected to my networking. I put this in the end of the file "/etc/httpd/conf/httpd.conf"("192.168.1.194" is the IP address of my computer. The default gateway IP address is "192.168.1.1"):

[Code]...

It works if i go to "http://192.168.1.194/" with the browser of the computer with apache inside, but on the others PC of my networking this method don't work!

View 2 Replies View Related

Ubuntu Servers :: Apache - Execute A Bash Script That Uploads A File To Another Server Through A Website?

Sep 20, 2010

I have a web server in my kitchen with apache running on it. Since the upload speed is quite low due to my isp I would like to execute a bash script that uploads a file to another server through a website (which is htaccess protected) The idea in general: Someone with access to my website browses through a folder, copies a file path to an input form and presses "upload". Rather than executing a bash script directly I could have a cron job running in background that finds the path and then uploads the file to the other server I have userspace on and is accessible via sftp/ssh. The file would be than erased later after a couple of days or so. That person would be able to access the file with higher speed some time later without logging in via ssh and doing all that manually.

View 2 Replies View Related

Ubuntu Servers :: 8.0.4 Server Apache Overload/Crash On Restart?

Jun 6, 2010

bit of a server noob having built a server to hold a php website for a client hosting at home, I have some experience, but VERY limited and don't speak fluent server.My problem is that overnight each day apache on my clients server stops responding. I can still access via putty / webmin.The best I can see it, it seems that apache 2 opens too many child processes and chokes the system. My reasoning for this is:-Though I have max child set to 20 with a keep alive of 30 there are dozens of child processes 'apache2 -k start' running, some of which were started 9.5 hours ago.

-I can stop apache, though that doesn't kill these child processes. I can terminate the parent process which does kill the child processes, however restarting apache after killing the child processes results in a system crash. Rebooting the server remotely after apache has stopped responding also results in a server crash. That is NO response on any port.I would be happy to display any pertinent server config/logs etc if anyone can help me troubleshoot this?

View 2 Replies View Related

Ubuntu Servers :: Apache Restart Fails After Power Loss?

Oct 25, 2010

I have observed a problem twice now with Apache trying to restart but hanging somewhere in the process. This happens after a power failure; the machine comes back just fine, but not the web server. The machine is on a UPS, but occasionally it runs out of "juice" before someone can get to it (we have a generator for emergencies). When this happens, a ps indicates about three processes running that are trying to start Apache, but they just sit there - this time for three days since the power failure was on a Friday. I can fix this by killing those processes and doing an Apache restart - but that takes human intervention, which is not acceptable.

I suspect this may have to do with SSL, since when I do a manual restart it asks me for the SSL password. There must be some way around this so the system can recover on its own. This system's web site runs under SSL since it maintains medical information that must by law be protected. But it also could be life-threatening to someone if the system can't come back and as a result a person can't get help.

So I would appreciate some guidance as to what I could change that would allow for system recovery without intervention. I'm happy to provide any configuration file info, if you tell me where to look.

View 3 Replies View Related

General :: Difference Between Restarting/stopping Apache Using 'service Httpd Restart/stop' And Apachectl Restart/stop

Oct 11, 2010

whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?

View 1 Replies View Related

Ubuntu Security :: Is Restart After Updating Necessary?

Apr 4, 2011

Every now and then, ubuntu update includes new image (initrd.img or something like that - a new kernel as I understood) that requires a restart of server after installation. How safe is it not to restart (and still use old kernel) for a while (until next scheduled service in a month or two)? The computer is a server and I don't want to restart it unless there are security concerns. Is there a page that tells you what are the changes in the new kernel? And if there are any security holes that have been patched? I'm currently using img version 2.6.32-28-server (and there is already 2.6.32-30-server).

View 4 Replies View Related

Ubuntu :: Apache - Website Maintenance Written In ASP

Apr 29, 2010

I was asked to take over maintenance for a web-site written in .asp. Can Appache handle it installed on linux, as a local test-server?

View 2 Replies View Related

General :: Apache Website Access

Dec 26, 2010

I have web server apache on linux Centos. I can access it successfully by typing on the address bar http://localhost, 127.0.0.1 or 192.168.0.150 from the local computer server and the site loads normally with graphic. When I access the site from another computer in the same local network, I don't get the correct website. I see the site like html as text not graphic. Please see below text file output from the browser: Also I can only access the site by typing 192.168.0.150 IP address in the address bar. When I type http://localhost or 127.0.0.1, the site does not come up. Do you see what I did wrong? How can I fix this problem.

View 7 Replies View Related

Server :: Apache Serves Up Website From Any URL?

Feb 17, 2011

I'm running Ubuntu 10.04 with apache, rails, mysql, etc. My rails site is running at www.example.com. I'm intending to use named-based virtual hosting and I have a virtual hosts file configured/enabled for www.example.com. My site is hosted on Amazon EC2.

The problem is that if I set up a new DNS record -- say test.example.com -- and browse to that, my site www.example.com is served up! That's without configuring any new virtual hosts. And the same is true if I go to my DNS records and define test2.example.com, etc. Without touching my server, these new URLs serve up my website. That's not what I want! I want to use name-based virtual hosting and host different sites for each subdomain.

[Code]...

UPDATE: now I understand a bit more... apparently my real problem is not what I thought it was. My real problem now appears to be that when I copy this virtual hosts file and edit it to add a new subdomain name, set up the corresponding site, etc., and enable the virtual host (a2ensite) and restart (graceful), apache immediately stops serving up any websites. Apparently apache crashes although I do not see any error messages. But all my sites go down and I have to revert and then restart apache.

I thought this was because my virtual host file (pasted above) had an error. So I thought I would start by getting that first file right. Apparently it is right. So now I need to understand why adding a second virtual host causes all sites to stop being served up.

View 1 Replies View Related

Software :: Make An Ssl Website With Apache?

Apr 14, 2011

I am very new to using Linux. I am trying to configure Apache. I have located the default in /etc/httpd and did a yum install httpd. Now, with this done, I am lost as is to how to configure. I am trying to make an ssl website with apache.

View 3 Replies View Related

General :: Apache Website Not Working / Solution For This?

Jan 22, 2010

I have a LAMP server configured. Yesterday, I had a test.php file displaying everything fine. I transferred some files over to the new server and now I can't connect to the test page, webmin, or phpmyadmin. I think it has something to do with Apache but Im not sure what to do next. I have restarted Apache, MySql and all services are running.

View 3 Replies View Related

Server :: Apache - Browsing The Same Website Simultaneously?

Feb 27, 2010

Doing my final year project in linux- a Mozilla Firefox extension which providing chat option for two or more peoples,who happen to be browsing the same website simultaneously. It shows you other people who visit the same websites as you are. These people have to be registered with our software. I don't know how to go about this. After a lot of googling and enquiring i have divided the project into three modules: an extension at browser side, chat implementation (probably in ajax) and a server- apache-php-mysql.

The extension keeps track of the URLs visited by the browser. It sends this information to the server. When it receives information from the server, the extension displays the number of users visiting the URL as the user. The extension informs the server whenever the user clicks the EnableChat(which will be embedded in a toolbar in the browser) button to start a chat session. After receiving the information, the extension displays the users in that site. The user clicks on a particular username for chat.

I have installed php mysql and apache. but i do not know exactly what the server must do. I know i have to write the server code in php and put it in the /var/www folder. but what should that code do? how exactly does the extension or browser communicate with the server for the exchange of above info?

View 4 Replies View Related

Software :: Website Not Visible To Others (Mint/Apache)?

Apr 11, 2011

I was able to install and setup Apache on my mint box. I created the site and it was visible to me using the localhost and home address. My instructor tried to view it from his machine and it timed out. I tried to view it from an unused Windows box in the classroom and it was unreachable.The instructor could not figure out why this was happening. The class is using about 4 different distros. There are only 2 of us using Mint and the other guy was not in class. We usually help each other outMost of the class had no problem when the instructor went to view their pages. Some had firewalls issues that were easily remedied. He was stumped when it came to my issue.So what may be going on here? Are there some specific things that need to be done with Apache on a Mint distro that I'm missing? Ubuntu, Opensuse, and Fedora all almost worked without tinkering around

View 6 Replies View Related

Server :: Updating Apache Tomcat On RHEL4

May 15, 2011

I installed very old the rhel package Apache Tomcat/5.5.20. I want to update it 5.5.33 or Tomcat6. Do you have the update for redhat?

View 1 Replies View Related

Networking :: Apache Server - Host Local Website Within Network

Jan 11, 2011

I am trying to host a local website(an wiki application) within a network. Is it necessary that all the files I need to upload should be in the var/www?

View 8 Replies View Related

Security :: Apache Exploited To Send Out Spam From Mailform On Website?

Oct 7, 2010

I have a server with a couple of sites on it. Some of them have a webform where people can send them emails that they are interested in their work etc. though the "To:" and "From:" adress can't be change by the enduser, you can only enter text and press send. However it seems that someone (not on the server) has found a hole/exploit to use those webforms to send mails to who ever he wants.. I have the webserver setup with ssmtp (simple smtp) and it just forwards the mail sent from the server to my mail-server and there on it sends it out on the internet. If I check my log on the mail-server I can see the whole smtp session, where it's comming from and where it's going etc. I see that it comes from my webserver and over there I only have these log entries:

Oct 6 22:04:47 ettan2 sSMTP[1771]: Sent mail for itaumail@itau.com.br (221 2.0.0 Bye) uid=204 username=torget outbytes=3290

There are loads of those log entries, mostly at after office-hours between 17:00 and 7:00 I have scanned through all the Apache logs and can't find Anything that point to the e-mail addresses used or something like that. The reason I found this out was because he tries to send to a host that doesn't allow connection on port 25 so all the mails got stuck in the queue, over 1000 atm.. I'm using Apache 2.2 and Postfix 2.6 on a Debian Lenny install. What can I do to find out how he's doing this and close the "exploit"? Who would you recommend to setup the mail() thing in PHP for most security?

View 6 Replies View Related

General :: Website - Administrate Own Blog Using Apache Hosted By GoDaddy.com Or Some Other Host

Jul 17, 2011

Where would I go to find a guide on a how-to for Linux website administration? I want to learn how to create a simple site dedicated to my blog. I already have a blog hosted by wordpress. I want to learn how to administrate my own blog using Apache hosted by GoDaddy.com or some other host.

View 2 Replies View Related

Server :: Opensuse Apache Connection - Unable To View Website From Outside The Local Network

Jan 29, 2011

I am running opensuse with LAMP, and this is my first time setting up this type of server (usually am a windows junkie) My problem i am having is that I am unable to view my website from outside the local network. I have setup my router for a dynamic dns and forwarded all the ports through the router and the local firewall. I ran the apache setup through YAST2 and everything seems fine locally but when i attempt to access it elsewhere its not connecting. computechsolutions.dyndns.biz is the dynamic dns address i have setup through my router.

View 2 Replies View Related

Programming :: Restart Apache If File Doesn't Exists?

Jun 6, 2009

I'm running CentOS 5.3 64bit and from the get go I've had problems with the Apache serverMore specifically, on what seems to be a random occurance, the apache server stops to respond.The process is still running, but nothing happens with it, and it is not responding.The /var/logs/httpd/error_log is blank for the occurance and only shows an entry after I give it a restartSo I'm a bit confused about what is going on.With that said, I need to make sure the httpd is working one way or another.I don't want to force a restart service every 10 minutes as this seems a bit too much.However, I do want to have the following:run a crond every minute to do:

rm -Rf /root/testarea/*
wget http://ip/work.gif
then check if work.gif exists.

[code]...

View 1 Replies View Related

OpenSUSE Install :: File System Becomes Read-only, Cannot Restart Apache?

Jan 2, 2010

running 11.0,Linux 2.6.25.20-0.5-paeusing a 3ware 9500 adapter - raid 5 array with hot sparethe system is only 6 weeks old.several days ago, apache would stop responding. trying a restart gives:

/etc/init.d/apache2 start
/bin/mktemp: failed to create file via template `/tmp/apache2.nb6xHyzlga2e': Read-only file system

[code]....

View 7 Replies View Related

CentOS 5 Server :: Need To Restart Apache If File Doesn't Exists

Jun 6, 2009

I'm running CentOS 5.3 64bit and from the get go I've had problems with the Apache server.More specifically, on what seems to be a random occurance, the apache server stops to respond.The process is still running, but nothing happens with it, and it is not responding.The /var/logs/httpd/error_log is blank for the occurance and only shows an entry after I give it a restart.So I'm a bit confused about what is going on.With that said, I need to make sure the httpd is working one way or another.I don't want to force a restart service every 10 minutes as this seems a bit too much.However, I do want to have the following:

run a crond every minute to do:If it fails, then do service httpd restart (and log the failure and restart to a file and email me a message).Any pointers on how to do that?It ain't the pretty solution, but it will save me from a very angry user until I'll figure what is the real cause for this failure.

View 5 Replies View Related

General :: Loading Php Module Without Restart Apache / Load Zend Extension Using '-z'?

Sep 23, 2010

I need to load php module without restart/reload apache, is there a way to do that, php has its option to load zend extension using '-z',

php -z <filename>

is there anyway because I need to load php module in runtime, that I don't want to loose the live running session.

View 1 Replies View Related

Ubuntu Servers :: How To Get Website Available On LAN And Internet

Feb 12, 2010

I am running ubuntu server in a virtual environment (vmware) and have setup apache and got mediawiki up and running which I can access on host machine by going to 172.16.170.130. But this is only available on my host machine and not elsewhere on the network. How do I make it available to others on LAN and eventually on the internet (associated with my host IP address?)

View 3 Replies View Related

Ubuntu Servers :: Run Ssh Commands Though PHP On Website?

Nov 2, 2010

I'm trying to run ssh commands though PHP on my website. I found this tutorial for it: [URL] I've got a few problems here, when I do "apt-get install openssl-dev" I get this output:

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package openssl-dev

[Code].....

View 7 Replies View Related

Ubuntu Servers :: Website Only Works When SSH?

Jun 15, 2011

My ISP provided me with a static IP and I went and bought a domain name with godaddy.com. The issue I'm having now is that I am getting a 403 forbidden error (You don't have permission to access / on this server). The strange part is that when I ssh into my server, and try to go to my website, everything works fine

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved