View Full Version : I need help with my first web server attempt
fryemo
5th October 2007, 08:52 PM
I am running f7 and have installed and configured my apache httpd server. I composed a simple webpage with kompozer. I try to publish it to the server and it wont send.
I dont think I am using the correct publishing address for my server
I am using
ftp://ftp.jfryelocalhost as the publishing server address
can anyone help me host my first webpage?
thanks
fryemo
giulix
5th October 2007, 09:03 PM
try:
http://localhost/yourpage.html
report any errors...
fryemo
5th October 2007, 09:13 PM
still saying publishing failed
unknown publishing error occurred
firewall is disabled and port 80 is forwarded at the router
giulix
5th October 2007, 09:17 PM
try this in a terminal:
su - {type your root password}
cp yourpage.html /var/www/html
chown apache:apache /var/www/html/yourpage.html
service httpd restart
change yourpage.html with the actual name of your page and point your browser to the address I gave you before
fryemo
5th October 2007, 09:40 PM
error says
[root@jfryelocalhost ~]# cp fryedayhomepage.html /var/www/html
cp: cannot stat `fryedayhomepage.html': No such file or directory
[root@jfryelocalhost ~]# cp yourpage.html /var/www/html
cp: cannot stat `yourpage.html': No such file or directory
[root@jfryelocalhost ~]#
giulix
5th October 2007, 09:51 PM
Ok, you need, as root, to copy the page from where you put it to /var/www/html. I assume you created it while working with your regular user, say it is called fryemo.
cp ~fryemo/fryedayhomepage.html /var/www/html
should do the trick.
fryemo
5th October 2007, 10:08 PM
it is not in the /var/www/html
html is empty
I can move it there
It is saved in my home directory. I was trying to use the publish feature of composer and tie it into the domain name I registered as fryeday.com
fryemo
5th October 2007, 10:17 PM
sorry I got it copied and done as you said above. I am a nube at this for sure.
trying to publish again
thanks for your patience
fryemo
fryemo
5th October 2007, 10:51 PM
it still does'nt work.
I need help confirming my /etc/httpd/conf file
can anyone help me with how my ServerName and Document Root lines should read?
my domain is fryeday.com
my html file in etc/www/html is fryedayhomepage.html
thanks
fryemo
giulix
6th October 2007, 11:21 AM
Basically you need to set ServerName to your DNS name and DocumentRoot to a directory where you store you pages, accessible from the user `apache'. In order to test the server, I suggest you initially set the ServerName to your IP address, though, and change it to your DNS name once everything works to your satisfaction...
fryemo
6th October 2007, 02:17 PM
ok thanks guilix I also had a problem with my domain name and dns registration at the host site.
I appreciate your help
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.