“开源学习”目录存档

Joomla解决高CPU,traffic占用率

2016年11月17日,星期四

一句话,把administrator目录修改掉。

过程却绕了一大圈,其实一上来就应该:

 

1. 用TOP时时观察CPU

2. 用FTP修改网站目录名

3.找到问题网站,逐个修改子目录名

办法很傻,估计LINUX高手有快速的办法,且这种高TRAFFIC不知道是不是被人盯上了,应该继续寻求彻底的解决方法。

Bitnami开启ssh启用phpmyadmin

2015年07月19日,星期日

转自论坛:

 

I noticed one part of my out-of-the-box phpmyadmin.conf is different to the one that is included in all online documents. After changing the line “Allow from 127.0.0.1″ with “Allow from all” that part looks like this:

 

<IfVersion < 2.3 >
 Order allow,deny
 Allow from all
 Satisfy all
 </IfVersion>
 <IfVersion >= 2.3>
 Require local
 </IfVersion>
 

 

I am thinking that the Require local under the <ifversion>= 2.3> may be conflicting with the Allow from all. I haven’t found any alternative syntax for that as all online documentation doesn’t include that syntax in the file used as example.

 

For Apache 2.4.x you will to use “Require all granted” instead of “Require local” in the <IfVersion >= 2.3>section:

 

<IfVersion >= 2.3>
 Require all granted
 </IfVersion>
 

 

For other options you can check the Apache documentation:

 

 

https://community.bitnami.com/t/accessing-phpmyadmin-remotely-i-get-this-security-error-for-security-reasons-this-url-is-only-accesible-using-localhost-127-0-0-1-as-the-hostname/6718/2

 

 

How to enable sshd?

Some applications like GitLab or Gitorious require to have SSH access to import the repositories. The “ssh” server is disabled by default for Virtual Machines. You can enable the “ssh” server from the machine console as follows:

  • For Ubuntu
    $ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
    $ sudo start ssh

Now you can login from a different machine using “ssh” and the IP address of your Virtual Machine.

If you want to disable it you can use the reverse method:

  • For Ubuntu
    $ sudo stop ssh
    $ sudo mv /etc/init/ssh.conf /etc/init/ssh.conf.back

Prestashop搬家

2015年05月27日,星期三

1. 备份当前站点所有内容;
2. 通过ftp或者sftp上传文件到新站点;
3. 使用phpMyAdmin导入数据库;
4. 用PHPMyAdmin修改ps_configuration表中PS_SHOP_DOMAIN和PS_SHOP_DOMAIN_SSL为新的域名;
5. 修改config/settings.inc.php中如下数据库三项内容为新的数据库信息:
define(‘_DB_NAME_’, ‘新数据库名’);
define(‘_DB_USER_’, ‘新数据库用户名’);
define(‘_DB_PASSWD_’, ‘新数据库密码’);

解决googlefonts和googleapi导致网站速度变慢的问题

2014年10月30日,星期四

google被墙,导致一堆问题。。。无奈

1. 把fonts换掉

2. 下载googleapi到本地

3. 更换到360

我自己操作了一下,更换到360最方便,因为有很多是有判断语句+变量的所以。。。

有更简单的解决办法。因为众所周知的原因,google的相关网站在大陆很难访问,所以当程序想调用“ajax.Googleapis.com”的js文 件时就特别慢,最简单的解决方法是直接把调用地址里的Googleapis改成useso,就搞定了。改地址后就是调用了360提供的js文件,那是完全 与google同步的,速度绝对快。把js文件下载再放到自己网站上也行,但是速度一般,而且涉及到流量。

sp smart portfolio

2014年09月11日,星期四

1. 建立catagory,插入预览图片和大图

2. 创建module – sp smart portfolio,源数据选择catagory

3. 创建文章,带入代码{loadposition portfolio-page}

4. 使用菜单。

 

http://www.joomshaper.com/documentation/component/k2/item/54-sp-portfolio

sugarcrm dashlets problem

2012年12月24日,星期一

When i click “add dashlets” it just show up a “loading” and will never show you the window even you wait for 1 hour.

u have to repair all the issue related, in admin–repair

Only reair dashilet cache will not solve this problem. I just clicked almost all repair job then done with it.

解决了仪表盘设置无法弹出的问题。

Joomla编辑工作视频两部

2012年09月28日,星期五

文章管理 http://v.youku.com/v_show/id_XMjQ3ODg2NzI0.html

 

菜单管理 http://v.youku.com/v_show/id_XMjQ3ODg2MTcy.html

解决sugarcrm导出excel乱码

2012年02月22日,星期三

导出内容无法选择gb2312,导出utf8,出来的内容都是乱码

在sugar的my account,导出编码选那个euc-cn就是gb2312.

joomla浮动窗口buaxua_floating

2012年01月16日,星期一

一开始都不知道那个显示在网页两侧,可以跟着页面上下走(永远在顶部)的窗口是什么。原来叫“浮动窗口”。

感谢qq上的朋友 流云,小米。

下面写一下安装和使用心得:

1. 下载module

http://www.buaxua.vn/forum/viewtopic.php?f=12&t=99

1.5和1.7版本都有了。

2. 在module里新建一个 “mod_buaxua_floating”种类的模块
位置是”debug”

3. 在module(模块)里新建一个想要显示的浮动模块,我尝试了个custom module
位置里直接输入buaxua_leftbox或者buaxua_right_box

4. 到页面里去注意下,可能那个浮动模块显示的位置不对,比如底部。不要紧,我们进入buaxua_floating模块里去调节参数,如果在很下面,就把顶部距离”top adjust”调节一下,比如我调成” -1100″,再刷新,可能那个模块就会跑到页面中间去了,同理调节左右距离” left adjust”,就可以了。

zencart关闭产品页里的tell a friend

2012年01月13日,星期五

How do I turn off Reviews and/or Tell A Friend?
Print
Save to list
Product Information Pages
You can enable/disable various options at the per-product-type level:
1. Open your Admin.
2. Put the cursor over Catalog on the top menu.
3. Choose Product Types from the dropdown.
4. Choose Products General (or the product type you are customizing).
5. Click Edit Layout and turn off any settings you do not want to display.

The settings for Reviews and Tell-A-Friend on this screen are related to the corresponding buttons that appear on the product-information page (for each product).