The effect I want to achieve is simple, I have two modules, home, WeChat.
Http://localhost/index.php/home/index/index shortened to: Http://localhost/index/index
Http://localhost/index.php/wechat/index/index shortened to: Http://localhost/wechat/index/index
Hide index.php, this is relatively simple, I open. htaccess support on the line, the specific configuration of the implementation of Baidu Bar, I use the apache2, to establish a soft connection into
Ln-s/etc/apache2/
Install Apache in Ubuntu
Installation instructions: sudo apt-get install apache2
After the installation is complete:
The resulting start and stop files are:/etc/init.d/apache2
Start: sudo apache2ctl-k start
Stop: sudo apache2ctl-k stop
Reboot: sudo apache2ctl-k restart
Configuration file Guaranteed:/etc/apache2
It is necessary to note that the generic Apache Release configuration file is:
httpd.conf
The main configuration file for the Ubuntu release is:
Apache2.conf
The following fil
to the size of the memory you need
Upload_max_filesize = = 2M ==> modified file maximum upload size
...
extension=mysql.so Support MySQL Service
Extension=gd.so Support GD function
...
In fact, under Ubuntu, if you install the Php5-mysql and PHP5-GD, you will automatically modify the above two lines, we do is just to confirm that their previous annotation is removed.
A. Most of the current PHP open source is written in PhP4, in order to compatible with the previous PHP version, sometimes
/APR/APR-UTIL-1.6.1.TAR.BZ2Then unzip separately.# tar zxf httpd-2.4.33.tar.gz# tar zxf apr-1.6.3.tar.gz# tar jxf apr-util-1.6.1.tar.bz2# CD apr-1.6.3#./configure--PREFIX=/USR/LOCAL/APR Installation# Make make install# CD: /apr-util-1.6.1/#./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR# Make make installAn error occurred during installation, one less dependency package, and the installation of the dependent package--ENABLE-SO supports dynamic expansion modules# CD:[Email prot
]# cc= "gcc-m64"./configure--prefix=/usr/local/aprInstalling the Apr-util Package[Email protected] src]# CD apr-util-1.5.4Configuration:[Email protected] apr-util-1.5.4]#/configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr[[email protected] apr-util-1.5.4]# echo $?0Compile and install:[[email protected] apr-util-1.5.4]# make make installComplete!Installing httpd[Email protected] src]# CD httpd-2.4.27Configuration:[Email protected] httpd-2.4.27]#/configure--prefix=/usr/local/apache2.4
Lab Environment :
IP Address
Description
192.168.5.181
CentOS7 system, Base source installed MARIADB, as the FTP server, as the authentication service side
192.168.5.121
CentOS6 system, as an FTP client
Installation of the authentication module pam_mysql.so
Need to download pam_mysql.so source package from the Internet, pam_mysql-0.7rc1.tar.gzBefore extracting the installation, make sure that the devel
, then follow the instructions.[email protected] openldap-2.4.21]# make depend[[email protected] openldap-2.4.21]# make[[email protected] openldap-2.4.21]# make installGo to the Apr-util directory just under Apache.[Email protected] apr-util]#/configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr--with-mysql=/usr/ Local/mysql \>--with-ldap-lib=/usr/openldap/lib--with-ldap-include=/usr/openldap/include \>--with-ldap=ldap--with-berkeley-db=/usr/local/berkeleydb.4.4You can then make the in
generate Makefile:./configureGenerate shared libraries (such as redis.so): MakeCommand line prompt to execute "make test", although not necessary, but careful to sail the boat AH ~ Brother!! If there's no problem here, let's move on.Install: Make installThe end result is that the software has been installed in/usr/lib/php5/20121212/redis.so, the essence of which is to copy the shared library files that we generated earlier, and so on.Wait a moment, but, now the problem is, how to let him and PH
The question is divided into the following steps1. Install Python2. Install Django3. Install WSGI, if you have any questions, please refer to the previous Ubuntu compilation installation Mod_wsgi4. Integration with Apache here is mainly about this partEnvironment Apache 2.4.7 higher than this version applies to this configuration if the version is different, but there are problems that can be tried on other1. Add Wsgi in Apache's moduleI'm here to add a file in/etc/apache2/
implement a component ourselves to meet our own needs. There is no special requirement in my project, so I just configure the Noerrorsplugin plug-in to skip the compile-time error code and record it, so that the package does not have an error after compiling the runtime:1 plugins: [2 New Webpack. Noerrorsplugin ()3 ]6.externalsThis is necessary in practical development when we want to require some other class libraries or APIs in the project, and do not want the source code of these librari
configuration information of this file at startup. Some other configuration files, such as httpd. conf, are included through the Include command. You can find these Include rows in apache2.conf:
Reference
#Includemoduleconfiguration:
Include/etc/apache2/mods-enabled/*.load
Include/etc/apache2/mods-enabled/*.conf
#Includealltheuserconfigurations:
Include/etc/apache2/httpd.conf
#Inc
Protocol(11) SshConnect Server command(12) ScpUpload and download file commands4.PHP Development Environment: (Build lamp environment under Unbuntu server)First we can see how the following lamp works:Note: Curd means to change the database and deleteInstall Apache:sudo apt-get install apache2Apache2-vInstall PHP:sudo apt-get install php5Php5-vCheck if Apache has loaded the libphp5.so package:Cat/ect/apache2/mods-enabled/php5.loadIf the terminal prin
. #/etc/apache2/apache2.conf Wsgiscriptalias /mysite/var/www/djangoproject/mysite/ Mysite/wsgi.py #映射/mysite URL to wsgi.py script wsgipythonpath /var/www/djangoproject/mysite #使得可以import mysite Require all granted When MOD_WSGI is installed, it is automatically generated in the/etc/apache2/mods-enabled/ directory: Wsgi.load and wsgi.conf if not, you can also load the module manually: LoadModule wsgi_module/ Usr/lib/apache2/modules
that the WWW and root domain name is two configuration Oh, do not lazy, to separate change good can.Third, the moduleSystem modules are generally installed, only through the mods-enabled directory to load the module, is in this directory under the chain mods-available directory configuration file to load the moduleA2enmod and A2dismod are used to maintain these symbolic connections. These two commands are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.