Visit Our UNIX and Linux User Community


some local hosting problems


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers some local hosting problems
# 1  
Old 06-20-2001
some local hosting problems

well, im back, i had everythign working perfectly and i had to reformat, er.. 'initialize', my harddrive. so i tried starting over from the same directions i had before, and some stuff still isnt working. ok

1) after the first time i installed apache, i went int httpd.conf and change all the root directories to /media/websites, and that worked, but now, even fter ive switched it back to the httpd.conf.default, it still goes there when i type localhost into a browser

2) i also installed php4 (a couple times) and i to test it i jujst made the simple phpInfo() page thing, and when i load it i get a parse err on lien 1, even though there is no php on ln1, mabey its my PHP, or mabey its my code, but i doubt its teh code.

3) kidna related to problem 1, i cant seem to use my IP adrress to connect to my server any more, it just kidan stalls when i try and load it, and i cant seem to ever get to that apache welcome screen..

Well, todays my last day of final, so i have to go in for 9-10:30, and ill be back after that, any little pointer would be apreciated!
# 2  
Old 06-20-2001
replys to your questiosn in this order.

1) send a HUP to the httpd so it will reread the config file after you rename it.

2) 1st: remove php untill you get it working like you had it. THEN you can add stuff.

3) if you can get to it via host name but NOT ip. it is my logical guess your typeing the incorrect ip.

check your httpd.conf with apachectl using the configtest option to check for errors in your httpd.conf file.
# 3  
Old 06-21-2001
ok, i did option 3 and all the syntax was ok
about 1) i backed up my version of httpd.conf, and then renamed httpd.conf.default to httpd.conf, so there shou;ldnt be any problems w/ that.

my biggest thing now is, how do i remove php?
# 4  
Old 06-21-2001
As Optimus said you still need to restart the apache server in order for it to re-read it's configuration files, renaming the existing file and replacing it with another will not have any effect until you do this. Restart apache using the start and stop scripts that it comes with, this will allow it to clear it's self up properly and launch a clean process.

As for removing php the most common, and generally best option, is to recompile the apache binary with the php module switched off - this is cleaner and ensures that you have a binary for your needs.

Regards.
alwayslearningunix
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #716
Difficulty: Medium
The theory of computable functions by Alan Turning greatly influenced the construction of modern digital computers.
True or False?

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

MilesWeb.com shared hosting or unlimited hosting plans?

I want to host a website in India, after all my research I have found MilesWeb.com, I am planning to go for their shared plan http://www.milesweb.com/cpanel-hosting.php I have test their contact options and response time, they are really available 24/7. I have checked few other providers, they... (1 Reply)
Discussion started by: Guruguy
1 Replies

2. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

3. Shell Programming and Scripting

Shell scripting problems - Commands not on local machine

Hello all- I have done a lot of searching tonight, but all leads seem to be dead ends. Forgive me if this has been covered, but I've searched the forum and the internet. I am having trouble building a shell script which uses SSH to login to our schools 1024 cluster grid. The issue that I am... (1 Reply)
Discussion started by: Sagan
1 Replies

4. UNIX for Advanced & Expert Users

Problems with tar between local and nfs disk

Hi, I am trying to move a local directory from a local disk to a nfs disk that has been shared on another file server. I am using this tar command: tar cf - . | (cd /export/nfsdisk && tar xpf - ) It copies the data okay but the big problem is that is resets the owner:group to 'nobody'. The... (2 Replies)
Discussion started by: jlowry
2 Replies

5. Shell Programming and Scripting

Facing problems when FTPING file from server to local (Very Urgent)

Hi, when i am trying to FTP one file (test.txt) from Unix server to my local machine then i am getting the following error, as shown below ftp> binary 200 Type set to I. ftp> put C:\FTP\test.txt C:FTPtest.txt: No such file or directory ftp> The red color text is the error. Can... (3 Replies)
Discussion started by: sunitachoudhury
3 Replies

6. Solaris

Local Printer Problems

I've connected a Sun Sparc Printer E to a Sun Server to print locally. I've gone through and added the printer using the admintool, but nothing will print. Is there some other configuration that needs to take place that I'm overlooking. :o (0 Replies)
Discussion started by: sprite
0 Replies

7. UNIX for Advanced & Expert Users

Shell hosting

Hi, IMA nOOb; I would greatly appreciate it if anybody could shed some light on this subject. For example I want users to login using ssh or ftp and not be ABLE to leave their userdir so they cannot view any directories outside of the /home/user so they can't cd / ls Sorry... (5 Replies)
Discussion started by: scuzoid
5 Replies

Featured Tech Videos