Current time: 11-15-2024, 11:15 AM Hello There, Guest! (LoginRegister)


Post Reply 
apache fail after subdomain creation
Author Message
machinakias Offline
Newbie
*

Posts: 6
Joined: Dec 2010
Reputation: 0
Post: #1
apache fail after subdomain creation
Hi all...I need your help please...
Here it's my problem:
I set up my domain lets say "mydomain.com",upload the site files,test it,works fine...

Then,i'm going to create a subdomain,like this:
go to user,add subdomain,giving subdomain name like "subdomain" and mount point automatically gives /subdomain

i do not touch anything else...just adding the subdomain name.....

then,i see that it crates the subdomain,but it says "unknown error" in status,and the subdomain is not accesible....

i saw that it does not create any subdomain.db file or directory....
But the MAJOR problem is that after creating the subdomain,apache fails to start! tried to reboot,restart apache etc...no luck!

after this,no site nor panel is accesible,even through the local ip (192.168.1.10....)
No matter what i do,apache does not run....

what i am doing wrong? how can i add a subdomain in easy steps?
could anyone give me some advice?

I use ubuntu 10.04 server and ispCP Omega 1.0.7
01-03-2011 12:36 AM
Find all posts by this user Quote this message in a reply
machinakias Offline
Newbie
*

Posts: 6
Joined: Dec 2010
Reputation: 0
Post: #2
RE: apache fail after subdomain creation
(01-03-2011 01:01 AM)ceciliaerickson Wrote:  hi machinakias
did you check the security of the server?
hello my friend..and happy new year!
could you tell me what do you mean exactly about security?
if you mean about firewall or something,i do not run any....
(i uninstalled apparmor from the beginning...)

i attach some screenshots of my setup,and what i see....
in image 1 is my setup of the subdomain..
in 2 what i see then,and finally the error....

got to say,that in my last try,i created a eclass.athlug.gr.db file with my dns records and so,like i did for my domains....
(my domains worked like this...because the default setup gave me errors)
then,apache refuses to start,even if i remove this new file...

now,i saw this in the ISPCP debugger

eclass - Set status to 'change'
get_tag() | [ERROR] '; sub [{SUB_NAME}] entry BEGIN. ' ne '; sub [{SUB_NAME}] entry END. ', '; sub [{SUB_NAME}] entry BEGIN. ' or '; sub [{SUB_NAME}] entry END. ' missing in src !

thanks!


Attached File(s) Thumbnail(s)
           
(This post was last modified: 01-03-2011 01:22 AM by machinakias.)
01-03-2011 01:09 AM
Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #3
RE: apache fail after subdomain creation
Ignore ceciliaerickson, it's a signature spammer. I've reported their post.

What happens when you run "apachectl checkconfig"? I believe on Debian-based systems it's "apache2ctl checkconfig". That should at least help if there is an error in the configuration file, which your post seems to indicate.
01-03-2011 05:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
machinakias Offline
Newbie
*

Posts: 6
Joined: Dec 2010
Reputation: 0
Post: #4
RE: apache fail after subdomain creation
(01-03-2011 05:06 PM)motokochan Wrote:  Ignore ceciliaerickson, it's a signature spammer. I've reported their post.

What happens when you run "apachectl checkconfig"? I believe on Debian-based systems it's "apache2ctl checkconfig". That should at least help if there is an error in the configuration file, which your post seems to indicate.


well...here is what i did...

i ran pache2ctl status a nd here is what i get...

Code:
root@epsilon-computers:/home/errikos# apache2ctl status

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
root@epsilon-computers:/home/errikos# apache2ctl start
root@epsilon-computers:/home/errikos# apache2ctl start
httpd (pid 1467) already running

now,apache is running....

i tried to make some changes like set magic quotes off because my applications say so...then restarted the hole machine and tada!
apache dies!

after that,i try 'apache2ctl fullstatus' command and here we got...

Code:
root@epsilon-computers:/home/errikos# apache2ctl fullstatus

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars

if i restart my server,apache does not run...

what can i do in case i need to make some changes in php.ini?
it's really bad if i have to start apache manually in case of power down!!!
(This post was last modified: 01-04-2011 08:33 PM by machinakias.)
01-04-2011 08:24 PM
Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #5
RE: apache fail after subdomain creation
Don't run status or full-status. Those are turned off by ispCP. You want to check the configuration files of Apache HTTPd. Use the "configtest" directive: "apache2ctl configtest"


(Sorry for earlier, it's configtest, not checkconfig. I was posting from memory.)
01-05-2011 03:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)