关于19服务器,配置新的项目文档
1.配置虚拟域名并测试,例如新项目的目录为ebookbag_jqa.到usr/local/apache2/extra 下面的httpd-vhosts.conf下进行虚拟目录设置(这一点跟windows下相似,配置完之后,需要重启apache,可以通过命令完成)b.重启apache,并测试虚拟域名是否有效/usr/local/apache2/bin/apachectl -k restart2.将项目布置到目录下a.去svn处理b.将项目文件夹拷贝到apache默认的目录www/servers下,比如命名为ebookbag_jqc.拷贝config下的web.xml并进行配置cd /www/servers/ebookbag_jq/webroot/configcp /www/servers/ebookbag_demo2/webroot/config/web.xml ./3.测试项目能否运行发现问题如下Fatal error: Uncaught exception 'Zend_Log_Exception' with message '"/www/servers/ebookbag_jq/_logs//debug.log" cannot be opened with mode "a"' in /www/servers/ebookbag_jq/library/Zend/Log/Writer/Stream.php:66 Stack trace: #0 /www/servers/ebookbag_jq/webroot/index.php(51): Zend_Log_Writer_Stream->__construct('/www/servers/eb...') #1 {main} thrown in /www/servers/ebookbag_jq/library/Zend/Log/Writer/Stream.php on line 66原因_logs权限不够f.设置_logs权限为777,并进一步测试chmod -R 777 _logs发现问题如下Fatal error: Smarty error: unable to write to $compile_dir '/www/servers/ebookbag_jq/_temp/templates_c/default'. Be sure $compile_dir is writable by the web server user. in /www/servers/ebookbag_jq/library/Smarty/Smarty.class.php on line 1092原因_temp文件夹权限不够g.设置_temp权限为777chmod -R 777 _temp发现一些图片文件不存在h.拷贝一些确实的素材文件,由于这些文件比较大,之前就没有不知道项目中,所以现在补充上把现有的images文件夹备份mv ./images ./images_bak拷贝新的images文件夹到当前目录cp -r /www/servers/ebookbag_demo2/webroot/images ./拷贝新的upload文件夹到当前目录cp -r /www/servers/ebookbag_demo2/webroot/upload ./4.配置ipawebroot下需要文件r.phpget_teacher_plist_version.phpget_student_plist_version.php.htaccess(RewriteEngine on#RewriteRule !uploadfile index.phpRewriteRule !\.(js|ico|gif|GIF|jpg|JPG|png|PNG|css|swf|htm|php|txt|zip|html|xml|ur|pptx|mp3|mov|mp4|db3|doc|docx|xls|xlsx)$|uploadfile/*|ipa/*|ucenter/*|uchome/*|phpmyadmin/*$ index.php)以及ipa目录ipa/index.htmlipa/teacher.plistipa/student.plistipa/teacher.ipaipa/student.ipaipa/otest.plistipa/OnlineClassTest.ipaipa/ebookbag.png修改这些文件相应的配置5.配置数据库一些socket数据6.配置db文件serConfig.plistsysConfig.plist7.各种测试,各种与客服端人员沟通,各种发现问题..