How install Apache 2. PHP 5. 4 and My. SQL 5. Windows 7. Posted by newlife. Mar 1. 7, 2. 01. 2 in Windows | 2. Recently decided to install a working Apache 2. How to Install VPN PPTP Server on CentOS 6.PHP 5. 4. 9 and My. SQL 5. 5 running locally on my Windows 7 laptop for web design, not using XAMPP or WAMP installation methods. Which are great but this round I wanted to match my Linux server. Apache 2. 4 Install. First download Apache 2. Apache 2. 4. 1with IPv. This release is supported by the PHP 5. Apache 2. 4. Extract the zip and copy it to the root of C: \. This will be C: \Apache. Update 0. 1- 1. 7- 2. The version of the php. PHP you are installing. The link that was reference before has been changed and moved to http: //www. As of PHP 5. 4. 1. Windows build. PHP 5. Earlier. Download PHP 5. VC9 x. 86 Thread Safe from http: //windows. Win. 32- VC9- x. 86. Extract and rename folder to php and move to C: \Also, download php. Runs with PHP 5. 4 Thread Safe (TS), and only with Apache 2. Win. 32 VC9 or VC1. PHP 5. 4. 1. 0 and higher. Download PHP 5. 4 VC9 x. Thread Safe from http: //windows. Extract and rename folder to php and move to C: \. Update 0. 1- 1. 7- 2. This next edit seems to cause issues with php. I have added two options for PHP 5. PHP 5. 4. 1. 0 and above. I want to thank all those who have brought this to my attention and I hope this helps out. Also, due to the addition of the php. PHP 5. 4. 1. 0 and above builds you no longer need to download the module separately. PHP 5. 4. 9 and earlier Option 1. Extract php. 5apache. This is needed to allow Apache to use PHP. Edit Apache’s config file, c: \Apache. Load. Module php. Add. Handler application/x- httpd- php . PHPIni. Dir "C: /php"While we are at it we can add index. Apache’s list just incase we want to have a starting page as php. Find Directory index and add index. Directory. Index index. Next we need to input a value for Server. Name variable. You will have to un- comment it. Save the changes to the config file. Next move to the Register Apache Service step. PHP 5. 4. 9 and earlier Option 2. Extract php. 5apache. This is needed to allow Apache to use PHP. Edit Apache’s config file, c: \Apache. Load. Module php. Add. Handler application/x- httpd- php . PHPIni. Dir "C: /php"While we are at it we can add index. Apache’s list just incase we want to have a starting page as php. Find Directory index and add index. Directory. Index index. Next we need to input a value for Server. Name variable. You will have to un- comment it. Save the changes to the config file. Next move to the Register Apache Service step. PHP 5. 4. 1. 0 and newer. Edit Apache’s config file, c: \Apache. Load. Module php. Add. Handler application/x- httpd- php . PHPIni. Dir "C: /php"While we are at it we can add index. Apache’s list just incase we want to have a starting page as php. Find Directory index and add index. Directory. Index index. Next we need to input a value for Server. How To Install Tomcat 7.0.75 Server on CentOS/RHEL 7/6/5. This tutorial will guide you to install Tomcat Server on CentOS/RHEL. Install and configure Telnet Server in Linux Telnet service is to provide a text-oriented communications and this service is used on internet/LAN using a virtual. Name variable. You will have to un- comment it. Save the changes to the config file. Next move to the Register Apache Service step. Register Apache Service. Now let’s register Apache as a service. Open a command prompt and type. If do not want Apache starting automatically at start- up/reboot: GUI Way. START | RUNType in services. Enter or click OKLocate Apache. Properties)Find the caption Startup type: (in the middle of the dialog box), use the pull- down and select Manual. Click OKCommand line. C: \> sc config Apache. Addc: \Apache. 24; c: \Apache. PATH in Environment variables. PATH ENVIRONMENT (System Properties | Advanced | Environment Variables | System variables | Path). Example: ;c: \php; c: \apache. Now lets check Apache settings by issuing the command, c: \Apache. SPHP Edits. Now we have to do a few edits to the php. Since there is not a already set php. Rename c: \php\php. Now let’s edit php. Uncomment extension directory.; Directory in which the loadable extensions (modules) reside. Uncomment mysql modules. Save the changes and open a command prompt. Check to make sure it shows loaded modules. C: \> php - m. So now we have Apache running and configured to use php. Lets create a file called info. Apache parses the info correctly to display the results. Open Notepad or your favorite Windows editor and type and save the following. < ? Open your browser and type, localhost/info. PHP. My. SQLDownload and install mysql- 5. Change installation directory to C: \My. SQL\My. SQL Server 5. Program files as there could be permissions issues. Once the installation is completed you can let the configuration wizard run and setup the database server. The defaults will work just fine, but remember what you set the password to for root. PHPMy. Admin. PHPMy. Admin is a very nice tool to use for administering your My. SQL installation. Download and install phpmyadmin- 3. Extract the file and move to c: \apache. Rename directory to phpmyadmin. Create a config directory under phpmyadmin. Open a browser and type localhost/phpmyadmin/setup/index. At this point you should have a working Apache / PHP / My. SQL installation running and ready for you to start developing !!! Install VPN PPTP Server on Cent. OS 6. Typos in previous post: > while testing/learning, disable the OS firewall with “service iptables save”,Should be “service iptables stop”. My actual notes of what I did: ESXi 5. GB disk, 6. 00. MB RAM, Cent. OS 6. 4 6. 4 bit “Minimal: core” install. The “> > > ” is text edited in vi.# vi /etc/sysconfig/network- scripts/ifcfg- eth. ONBOOT=yes# reboot# yum update# reboot# uname - a. Linux localhost. localdomain 2. SMP Wed Mar 1. 3 0. UTC 2. 01. 3 x. 86_6. GNU/Linux# ifconfig - aeth. Bcast: 1. 72. 1. 6. Mask: 2. 55. 2. 55. Installed: ppp. x. Dependency Installed: libpcap. Installed: wget. x. Installed: perl. x. Dependency Installed: perl- Module- Pluggable. Pod- Escapes. x. 86_6. Pod- Simple. x. 86_6. Installed: tcpdump. Uhv pptpd- 1. 3. 4- 2. I INPUT - i eth. 0 - p gre - j ACCEPT# iptables - I INPUT - i eth. ACCEPT# iptables - t nat - A POSTROUTING - o eth. MASQUERADE# iptables - I FORWARD - i ppp+ - o eth. ACCEPT# iptables - I FORWARD - i eth. ACCEPT# service iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]# service iptables startiptables: Flushing firewall rules: [ OK ]iptables: Setting chains to policy ACCEPT: nat filter [ OK ]iptables: Unloading modules: [ OK ]iptables: Applying firewall rules: [ OK ]- - should work here - -# chkconfig pptpd on# reboot# tcpdump - i eth. EN1. 0MB (Ethernet), capture size 6. IP 1. 0. 1. 0. 1. Flags [S], seq 2. OK], length 0. 14: 3. IP 1. 0. 1. 0. 1. Flags [S.], seq 3. OK], length 0. 14: 3. IP 1. 0. 1. 0. 1. Flags [P.], seq 1: 1. CTRL_MSGTYPE=SCCRQ PROTO_VER(1. FRAME_CAP(A) BEARER_CAP(A) MAX_CHAN(0) FIRM_REV(2. HOSTNAME() VENDOR(Microsoft Windows NT)1. IP 1. 0. 1. 0. 1. Flags [.], ack 1. IP 1. 0. 1. 0. 1. Flags [P.], seq 1: 1. CTRL_MSGTYPE=SCCRP PROTO_VER(1. RESULT_CODE(1) ERR_CODE(0) FRAME_CAP() BEARER_CAP() MAX_CHAN(1) FIRM_REV(1) HOSTNAME(local) VENDOR(linux)1. IP 1. 0. 1. 0. 1. Flags [P.], seq 1. CTRL_MSGTYPE=OCRQ CALL_ID(1. CALL_SER_NUM(9. 81. MIN_BPS(3. 00) MAX_BPS(1. BEARER_TYPE(Any) FRAME_TYPE(E) RECV_WIN(6. PROC_DELAY(0) PHONE_NO_LEN(0) PHONE_NO() SUB_ADDR()1. IP 1. 0. 1. 0. 1. Flags [P.], seq 1. CTRL_MSGTYPE=OCRP CALL_ID(0) PEER_CALL_ID(1. RESULT_CODE(1) ERR_CODE(0) CAUSE_CODE(0) CONN_SPEED(1. RECV_WIN(6. 4) PROC_DELAY(0) PHY_CHAN_ID(0)1. IP 1. 0. 1. 0. 1. Flags [P.], seq 3. CTRL_MSGTYPE=SLI PEER_CALL_ID(0) SEND_ACCM(0xffffffff) RECV_ACCM(0xffffffff)1. IP 1. 0. 1. 0. 1. Flags [.], ack 3. IP 1. 0. 1. 0. 1. Flags [P.], seq 3. CTRL_MSGTYPE=SLI PEER_CALL_ID(0) SEND_ACCM(0x. RECV_ACCM(0xffffffff)1. IP 1. 0. 1. 0. 1. Flags [.], ack 3. IP 1. 0. 1. 0. 1. Flags [P.], seq 3. CTRL_MSGTYPE=SLI PEER_CALL_ID(0) SEND_ACCM(0xffffffff) RECV_ACCM(0xffffffff)1. IP 1. 0. 1. 0. 1. Flags [.], ack 3. IP 1. 0. 1. 0. 1. Flags [F.], seq 1. IP 1. 0. 1. 0. 1. Flags [F.], seq 3. IP 1. 0. 1. 0. 1. Flags [.], ack 3. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. MGR: Maximum of 1. IP addresses given. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. MGR: Manager process started. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. MGR: Maximum of 6 connections available. Mar 2. 2 1. 4: 3. Cent. OS- 6- template kernel: device eth. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. CTRL: Client 1. 0. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. CTRL: Starting call (launching pppd, opening GRE)Mar 2. Cent. OS- 6- template pppd[2. Warning: can't open options file /root/. Permission denied. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Plugin /usr/lib. 64/pptpd/pptpd- logwtmp. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Using interface ppp. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Connect: ppp. 0 /dev/pts/2. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. GRE: Bad checksum from pppd. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. CTRL: Ignored a SET LINK INFO packet with real ACCMs! Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. MPPE 1. 28- bit stateless compression enabled. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. IP address 1. 0. 1. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. LCP terminated by peer (BE8t^@< M- Mt^@^@^@^@)Mar 2. Cent. OS- 6- template pppd[2. Connect time 0. 1 minutes. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Sent 9. 6 bytes, received 2. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Connection terminated. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pppd[2. Modem hangup. Mar 2. Cent. OS- 6- template pppd[2. Exit. Mar 2. 2 1. Cent. OS- 6- template pptpd[2. GRE: read(fd=6,buffer=6. PTY failed: status = - 1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs. Mar 2. 2 1. 4: 3. Cent. OS- 6- template pptpd[2. CTRL: PTY read or GRE write failed (pty,gre)=(6,7)Mar 2. Cent. OS- 6- template pptpd[2. CTRL: Client 1. 0. Hope this helps someone else, or someone else corrects me here. Cris. Cris Mooney. March 2. 01. 3Reply.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |