Home Page
Favorites
Contact Us
 
HonoWeb | HonoBBS | Search | Login | Signup
 
HomeHono Community DevelopmentHonoCMS → Setup problem
 
 
   
User: mtamoor
Posts: 2
Joined: 2009-02-12 14:20:11
Topic
Setup problem

I have created database honocms in mysql. But i am getting error when i enter database information

query(trim($sql))) return false; } return true; } //replace configuration file if($flag) { $current_dir=str_replace('\\','/',dirname(__FILE__)); $configuration_dir=substr($current_dir,0,strrpos($current_dir,'/')); //read $filepath=$configuration_dir."/Configuration.php"; $fp= fopen ($filepath,"r"); $content = fread ($fp,filesize($filepath)); $content=str_replace("{mysqlhost}",$mysqlhost,$content); $content=str_replace("{mysqluser}",$mysqluser,$content); $content=str_replace("{mysqlpwd}",$mysqlpwd,$content); $content=str_replace("{mysqldb}",$mysqldb,$content); //write $fp= fopen ($filepath,"w"); fwrite($fp,$content,strlen($content)); fclose ($fp); $dir=new FileDir(); $dir->deleteAllDir($configuration_dir."/install"); //updata admin password $admin_psw=$_POST['admin_psw']; $sql="update hono_users set psw='".$admin_psw."' where username='admin'"; $d->query($sql); } ?>

How to correct it?

User:juice
Posts: 5
Joined: 2008-12-23 20:21:45
1
check your appche server if support php  <? ?>  and php include
User:mtamoor
Posts: 2
Joined: 2009-02-12 14:20:11
2

I have enabled the short_tag property for php and the database is intalled successfully now.

But now it is not opening the admin area on the link:

http://localhost/honocms/admin/HonoCMS/admin/admin.php?message=2

I am getting HTTP 404 Not found error. What should i do to correct this.

Thanks for the reply.

2 30 1/1页 1
 
Home | Home Page | Favorites | Contact Us

Copyright ? Powered by HonoWeb 2005-2008 All rights reserved.